-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
CLN: Use fixture dtype_backend in nullable tests #51129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -912,7 +912,6 @@ def test_to_numeric_use_nullable_dtypes_already_nullable(dtype): | |||
@pytest.mark.parametrize( | |||
"use_nullable_dtypes, dtype", [(True, "Float64"), (False, "float64")] | |||
) | |||
@pytest.mark.parametrize("dtype_backend", ["pandas", "pyarrow"]) | |||
def test_to_numeric_use_nullable_dtypes_error( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the pytest.importorskip("pyarrow")
can be removed within the test now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah good point, thx
@@ -640,6 +641,7 @@ def test_use_nullable_dtypes(self, engine, request): | |||
expected = expected.drop("c", axis=1) | |||
tm.assert_frame_equal(result2, expected) | |||
|
|||
@pytest.mark.skipif(pa_version_under6p0, reason="minimum pyarrow not installed") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't engine
already do a similar skipif
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought so as well, but it was failing locally without pyarrow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah sorry, actually it's only skipped for pyarrow engine but it is imported for both engines, e.g. the test will fail if fast parquet engine is used
@@ -591,6 +591,7 @@ def test_write_column_index_nonstring(self, pa): | |||
msg = r"parquet must have string column names" | |||
self.check_error_on_write(df, engine, ValueError, msg) | |||
|
|||
@pytest.mark.skipif(pa_version_under6p0, reason="minimum pyarrow not installed") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similarly here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
Thanks @phofl |
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.