-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Skipt failing tests for numpy dev #40877
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,8 @@ | |
import numpy as np | ||
import pytest | ||
|
||
from pandas.compat import is_numpy_dev | ||
|
||
import pandas as pd | ||
import pandas._testing as tm | ||
from pandas.core.arrays import ExtensionArray | ||
|
@@ -52,6 +54,11 @@ def test_array_scalar_like_equivalence(data, all_arithmetic_operators): | |
def test_array_NA(data, all_arithmetic_operators): | ||
if "truediv" in all_arithmetic_operators: | ||
pytest.skip("division with pd.NA raises") | ||
if ( | ||
"floordiv" in all_arithmetic_operators | ||
or "rfloordiv" in all_arithmetic_operators | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. since this is already true if "floordiv" in all_arithmetic_operators since There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thats a good point, would go with this then? |
||
) and is_numpy_dev: | ||
pytest.skip("NumpyDev behavior GH#40874") | ||
data, _ = data | ||
op = tm.get_op_from_name(all_arithmetic_operators) | ||
check_skip(data, all_arithmetic_operators) | ||
|
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.
all_arithmetic_operators is a scalar, despite the name. maybe should be
==
and add the dunders for clarity?and then maybe simplify further...
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.
See below