Skip to content

Commit 5ff6b2d

Browse files
author
OlivierLuG
committed
pandas-dev#34131 review taken into account
1 parent 2ca3041 commit 5ff6b2d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pandas/tests/frame/test_arithmetic.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from pandas.core.computation.expressions import (
1515
_MIN_ELEMENTS,
1616
_NUMEXPR_INSTALLED,
17-
_USE_NUMEXPR,
1817
)
1918
from pandas.tests.frame.common import _check_mixed_float, _check_mixed_int
2019

@@ -379,17 +378,14 @@ def test_floordiv_axis0(self):
379378
result2 = df.floordiv(ser.values, axis=0)
380379
tm.assert_frame_equal(result2, expected)
381380

381+
@pytest.mark.skipif(not _NUMEXPR_INSTALLED, reason="numexpr not installed")
382382
@pytest.mark.parametrize("opname", ["floordiv", "pow"])
383383
def test_floordiv_axis0_numexpr_path(self, opname):
384384
# case that goes through numexpr and has to fall back to masked_arith_op
385385
op = getattr(operator, opname)
386386

387387
arr = np.arange(_MIN_ELEMENTS + 100).reshape(_MIN_ELEMENTS // 100 + 1, -1) * 100
388388
df = pd.DataFrame(arr)
389-
if _NUMEXPR_INSTALLED:
390-
assert _USE_NUMEXPR
391-
else:
392-
return
393389
df["C"] = 1.0
394390

395391
ser = df[0]

0 commit comments

Comments
 (0)