-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
REF: move check for disallowed bool arithmetic ops out of numexpr-related expressions.py #41161
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 all commits
66e7295
0a89f59
f353ede
f4062f1
bac4048
6b53c4c
509d9f5
a61e609
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 |
---|---|---|
|
@@ -941,16 +941,16 @@ def test_binop_other(self, op, value, dtype): | |
elif (op, dtype) in skip: | ||
|
||
if op in [operator.add, operator.mul]: | ||
with tm.assert_produces_warning(UserWarning): | ||
# "evaluating in Python space because ..." | ||
op(s, e.value) | ||
# TODO we should assert this or not depending on whether | ||
# numexpr is used or not | ||
# with tm.assert_produces_warning(UserWarning): | ||
# # "evaluating in Python space because ..." | ||
op(s, e.value) | ||
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. The fact that it is no longer warning is I think correct, since we are not using numexpr for such a small test case (so the warning about "not supported by numexpr" is not relevant for the user). 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. Will take care of this in #41178 |
||
|
||
else: | ||
msg = "operator '.*' not implemented for .* dtypes" | ||
with pytest.raises(NotImplementedError, match=msg): | ||
with tm.assert_produces_warning(UserWarning): | ||
# "evaluating in Python space because ..." | ||
op(s, e.value) | ||
op(s, e.value) | ||
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. This was a wrong test, but because putting |
||
|
||
else: | ||
# FIXME: Since dispatching to Series, this test no longer | ||
|
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.
Opened an issue for this: #41165