Skip to content

Commit b0ba12a

Browse files
committed
TST: move tests for #6205 to class infrastructure to enable numexpr skipping
if not installed
1 parent 228e6f6 commit b0ba12a

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

pandas/computation/tests/test_eval.py

+7-12
Original file line numberDiff line numberDiff line change
@@ -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-
15901585
if __name__ == '__main__':
15911586
nose.runmodule(argv=[__file__, '-vvs', '-x', '--pdb', '--pdb-failure'],
15921587
exit=False)

0 commit comments

Comments
 (0)