@@ -375,7 +375,7 @@ def check_pow(self, lhs, arith1, rhs):
375
375
and is_scalar (rhs )
376
376
and _is_py3_complex_incompat (result , expected )
377
377
):
378
- msg = "DataFrame.columns are different"
378
+ msg = "( DataFrame.columns|numpy array) are different"
379
379
with pytest .raises (AssertionError , match = msg ):
380
380
tm .assert_numpy_array_equal (result , expected )
381
381
else :
@@ -461,7 +461,7 @@ def test_frame_invert(self):
461
461
# int raises on numexpr
462
462
lhs = DataFrame (randint (5 , size = (5 , 2 )))
463
463
if self .engine == "numexpr" :
464
- msg = "couldn't find matching opcode for 'invert_ii "
464
+ msg = "couldn't find matching opcode for 'invert "
465
465
with pytest .raises (NotImplementedError , match = msg ):
466
466
result = pd .eval (expr , engine = self .engine , parser = self .parser )
467
467
else :
@@ -504,7 +504,7 @@ def test_series_invert(self):
504
504
# int raises on numexpr
505
505
lhs = Series (randint (5 , size = 5 ))
506
506
if self .engine == "numexpr" :
507
- msg = "couldn't find matching opcode for 'invert_ii "
507
+ msg = "couldn't find matching opcode for 'invert "
508
508
with pytest .raises (NotImplementedError , match = msg ):
509
509
result = pd .eval (expr , engine = self .engine , parser = self .parser )
510
510
else :
0 commit comments