@@ -1348,6 +1348,13 @@ def setUpClass(cls):
13481348 cls .arith_ops = filter (lambda x : x not in ('in' , 'not in' ),
13491349 cls .arith_ops )
13501350
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+
13511358 def test_fails_and (self ):
13521359 df = DataFrame (np .random .randn (5 , 3 ))
13531360 self .assertRaises (NotImplementedError , pd .eval , 'df > 2 and df > 3' ,
@@ -1575,18 +1582,6 @@ def test_invalid_numexpr_version():
15751582 yield check_invalid_numexpr_version , engine , parser
15761583
15771584
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-
15901585if __name__ == '__main__' :
15911586 nose .runmodule (argv = [__file__ , '-vvs' , '-x' , '--pdb' , '--pdb-failure' ],
15921587 exit = False )
0 commit comments