1- from itertools import product
21import operator
32import re
43
@@ -319,7 +318,6 @@ def testit():
319318 for f in [self .frame , self .frame2 , self .mixed , self .mixed2 ]:
320319
321320 for cond in [True , False ]:
322-
323321 c = np .empty (f .shape , dtype = np .bool_ )
324322 c .fill (cond )
325323 result = expr .where (c , f .values , f .values + 1 )
@@ -433,11 +431,10 @@ def test_bool_ops_column_name_dtype(self, test_input, expected):
433431 result = test_input .loc [:, ["a" , "dtype" ]].ne (test_input .loc [:, ["a" , "dtype" ]])
434432 assert_frame_equal (result , expected )
435433
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 ) )
439437 def test_frame_series_axis (self , axis , arith ):
440- # Can't check floordiv here because it currently doesn't work #GH27636
441438 df = self .frame
442439 if axis == 1 :
443440 other = self .frame .iloc [0 , :]
@@ -454,8 +451,4 @@ def test_frame_series_axis(self, axis, arith):
454451 expr .set_use_numexpr (True )
455452
456453 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