Skip to content

Commit 02d152b

Browse files
author
Vlek
committed
Made changes to deal with the error messages that I got
that were different for Mac and Linux. These should be compliant across the six or so different builds that it did not before.
1 parent ef066e9 commit 02d152b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/tests/computation/test_eval.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ def check_pow(self, lhs, arith1, rhs):
375375
and is_scalar(rhs)
376376
and _is_py3_complex_incompat(result, expected)
377377
):
378-
msg = "DataFrame.columns are different"
378+
msg = "(DataFrame.columns|numpy array) are different"
379379
with pytest.raises(AssertionError, match=msg):
380380
tm.assert_numpy_array_equal(result, expected)
381381
else:
@@ -461,7 +461,7 @@ def test_frame_invert(self):
461461
# int raises on numexpr
462462
lhs = DataFrame(randint(5, size=(5, 2)))
463463
if self.engine == "numexpr":
464-
msg = "couldn't find matching opcode for 'invert_ii"
464+
msg = "couldn't find matching opcode for 'invert"
465465
with pytest.raises(NotImplementedError, match=msg):
466466
result = pd.eval(expr, engine=self.engine, parser=self.parser)
467467
else:
@@ -504,7 +504,7 @@ def test_series_invert(self):
504504
# int raises on numexpr
505505
lhs = Series(randint(5, size=5))
506506
if self.engine == "numexpr":
507-
msg = "couldn't find matching opcode for 'invert_ii"
507+
msg = "couldn't find matching opcode for 'invert"
508508
with pytest.raises(NotImplementedError, match=msg):
509509
result = pd.eval(expr, engine=self.engine, parser=self.parser)
510510
else:

0 commit comments

Comments
 (0)