1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
Description: ignore expected DeprecationWarning
Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no
--- pandas-2.3.1+dfsg.orig/pandas/tests/computation/test_eval.py
+++ pandas-2.3.1+dfsg/pandas/tests/computation/test_eval.py
@@ -558,7 +558,7 @@ class TestEval:
def test_scalar_unary(self, engine, parser):
msg = "bad operand type for unary ~: 'float'"
warn = None
- if PY312 and not (engine == "numexpr" and parser == "pandas"):
+ if PY312:
warn = DeprecationWarning
with pytest.raises(TypeError, match=msg):
pd.eval("~1.0", engine=engine, parser=parser)
|