Skip to content

Commit a0f7fc0

Browse files
committed
TST: control skipping of numexpr tests if its installed / used
1 parent 0915857 commit a0f7fc0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pandas/tests/test_expressions.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
import pandas.util.testing as tm
2121

2222

23-
if not expr._USE_NUMEXPR:
24-
numexpr = pytest.importorskip('numexpr')
25-
2623
_frame = DataFrame(randn(10000, 4), columns=list('ABCD'), dtype='float64')
2724
_frame2 = DataFrame(randn(100, 4), columns=list('ABCD'), dtype='float64')
2825
_mixed = DataFrame({'A': _frame['A'].copy(),
@@ -50,6 +47,7 @@
5047
_mixed2_panel = Panel(dict(ItemA=_mixed2, ItemB=(_mixed2 + 3)))
5148

5249

50+
@pytest.mark.skipif(not expr._USE_NUMEXPR, reason='not using numexpr')
5351
class TestExpressions(tm.TestCase):
5452

5553
def setUp(self):

0 commit comments

Comments
 (0)