|
80 | 80 | from test_utils.imports import maybe_fail_import |
81 | 81 | from tests.unit.helpers import make_connection |
82 | 82 |
|
83 | | -PANDAS_MINIUM_VERSION = "1.0.0" |
84 | | - |
85 | | -if pandas is not None: # pragma: NO COVER |
| 83 | +if pandas is not None: |
86 | 84 | PANDAS_INSTALLED_VERSION = metadata.version("pandas") |
87 | | -else: # pragma: NO COVER |
| 85 | +else: |
88 | 86 | PANDAS_INSTALLED_VERSION = "0.0.0" |
89 | 87 |
|
90 | 88 |
|
@@ -8149,8 +8147,8 @@ def test_load_table_from_dataframe_unknown_table(self): |
8149 | 8147 | ) |
8150 | 8148 |
|
8151 | 8149 | @unittest.skipIf( |
8152 | | - pandas is None or PANDAS_INSTALLED_VERSION < PANDAS_MINIUM_VERSION, |
8153 | | - "Only `pandas version >=1.0.0` supported", |
| 8150 | + PANDAS_INSTALLED_VERSION[0:2] in ["0."], |
| 8151 | + reason="Only `pandas version >=1.0.0` is supported", |
8154 | 8152 | ) |
8155 | 8153 | @unittest.skipIf(pyarrow is None, "Requires `pyarrow`") |
8156 | 8154 | def test_load_table_from_dataframe_w_nullable_int64_datatype(self): |
@@ -8197,8 +8195,8 @@ def test_load_table_from_dataframe_w_nullable_int64_datatype(self): |
8197 | 8195 | ) |
8198 | 8196 |
|
8199 | 8197 | @unittest.skipIf( |
8200 | | - pandas is None or PANDAS_INSTALLED_VERSION < PANDAS_MINIUM_VERSION, |
8201 | | - "Only `pandas version >=1.0.0` supported", |
| 8198 | + PANDAS_INSTALLED_VERSION[0:2] in ["0."], |
| 8199 | + reason="Only `pandas version >=1.0.0` is supported", |
8202 | 8200 | ) |
8203 | 8201 | # @unittest.skipIf(pyarrow is None, "Requires `pyarrow`") |
8204 | 8202 | def test_load_table_from_dataframe_w_nullable_int64_datatype_automatic_schema(self): |
|
0 commit comments