1
- from itertools import product
2
1
import operator
3
2
import re
4
3
@@ -319,7 +318,6 @@ def testit():
319
318
for f in [self .frame , self .frame2 , self .mixed , self .mixed2 ]:
320
319
321
320
for cond in [True , False ]:
322
-
323
321
c = np .empty (f .shape , dtype = np .bool_ )
324
322
c .fill (cond )
325
323
result = expr .where (c , f .values , f .values + 1 )
@@ -433,11 +431,10 @@ def test_bool_ops_column_name_dtype(self, test_input, expected):
433
431
result = test_input .loc [:, ["a" , "dtype" ]].ne (test_input .loc [:, ["a" , "dtype" ]])
434
432
assert_frame_equal (result , expected )
435
433
436
- @ pytest . mark . parametrize (
437
- "axis, arith", product (( 0 , 1 ) , ("add" , "sub" , "mul" , "mod" , "truediv" ))
438
- )
434
+ # Can't check floordiv here because it currently doesn't work #GH27636
435
+ @ pytest . mark . parametrize ( " arith" , ("add" , "sub" , "mul" , "mod" , "truediv" ))
436
+ @ pytest . mark . parametrize ( "axis" , ( 0 , 1 ) )
439
437
def test_frame_series_axis (self , axis , arith ):
440
- # Can't check floordiv here because it currently doesn't work #GH27636
441
438
df = self .frame
442
439
if axis == 1 :
443
440
other = self .frame .iloc [0 , :]
@@ -454,8 +451,4 @@ def test_frame_series_axis(self, axis, arith):
454
451
expr .set_use_numexpr (True )
455
452
456
453
result = op (df , other )
457
- try :
458
- assert_frame_equal (expected , result )
459
- except Exception :
460
- pprint_thing ("Failed test with operator {op.__name__!r}" .format (op = op ))
461
- raise
454
+ assert_frame_equal (expected , result )
0 commit comments