File tree 1 file changed +1
-5
lines changed
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change 14
14
from pandas .core .computation .expressions import (
15
15
_MIN_ELEMENTS ,
16
16
_NUMEXPR_INSTALLED ,
17
- _USE_NUMEXPR ,
18
17
)
19
18
from pandas .tests .frame .common import _check_mixed_float , _check_mixed_int
20
19
@@ -379,17 +378,14 @@ def test_floordiv_axis0(self):
379
378
result2 = df .floordiv (ser .values , axis = 0 )
380
379
tm .assert_frame_equal (result2 , expected )
381
380
381
+ @pytest .mark .skipif (not _NUMEXPR_INSTALLED , reason = "numexpr not installed" )
382
382
@pytest .mark .parametrize ("opname" , ["floordiv" , "pow" ])
383
383
def test_floordiv_axis0_numexpr_path (self , opname ):
384
384
# case that goes through numexpr and has to fall back to masked_arith_op
385
385
op = getattr (operator , opname )
386
386
387
387
arr = np .arange (_MIN_ELEMENTS + 100 ).reshape (_MIN_ELEMENTS // 100 + 1 , - 1 ) * 100
388
388
df = pd .DataFrame (arr )
389
- if _NUMEXPR_INSTALLED :
390
- assert _USE_NUMEXPR
391
- else :
392
- return
393
389
df ["C" ] = 1.0
394
390
395
391
ser = df [0 ]
You can’t perform that action at this time.
0 commit comments