@@ -1348,6 +1348,13 @@ def setUpClass(cls):
1348
1348
cls .arith_ops = filter (lambda x : x not in ('in' , 'not in' ),
1349
1349
cls .arith_ops )
1350
1350
1351
+ def test_check_many_exprs (self ):
1352
+ a = 1
1353
+ expr = ' * ' .join ('a' * 33 )
1354
+ expected = 1
1355
+ res = pd .eval (expr , engine = self .engine , parser = self .parser )
1356
+ tm .assert_equal (res , expected )
1357
+
1351
1358
def test_fails_and (self ):
1352
1359
df = DataFrame (np .random .randn (5 , 3 ))
1353
1360
self .assertRaises (NotImplementedError , pd .eval , 'df > 2 and df > 3' ,
@@ -1575,18 +1582,6 @@ def test_invalid_numexpr_version():
1575
1582
yield check_invalid_numexpr_version , engine , parser
1576
1583
1577
1584
1578
- def check_many_exprs (engine , parser ):
1579
- a = 1
1580
- expr = ' * ' .join ('a' * 33 )
1581
- expected = 1
1582
- res = pd .eval (expr , engine = engine , parser = parser )
1583
- tm .assert_equal (res , expected )
1584
-
1585
- def test_many_exprs ():
1586
- for engine , parser in ENGINES_PARSERS :
1587
- yield check_many_exprs , engine , parser
1588
-
1589
-
1590
1585
if __name__ == '__main__' :
1591
1586
nose .runmodule (argv = [__file__ , '-vvs' , '-x' , '--pdb' , '--pdb-failure' ],
1592
1587
exit = False )
0 commit comments