Skip to content

Commit c417fe2

Browse files
author
Francesc Alted
committed
Simplify and remove UserWarning testing on numexpr import
1 parent e1b34a9 commit c417fe2

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

pandas/tests/computation/test_compat.py

-9
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@
1111
from pandas.computation.engines import _engines
1212
import pandas.computation.expr as expr
1313
from pandas.computation import _MIN_NUMEXPR_VERSION
14-
# Get reload for Python 3.4 and on, if not, use internal reload()
15-
try:
16-
from importlib import reload
17-
except ImportError:
18-
pass
1914

2015
ENGINES_PARSERS = list(product(_engines, expr._parsers))
2116

@@ -28,13 +23,9 @@ def test_compat():
2823
import numexpr as ne
2924
ver = ne.__version__
3025
if ver < LooseVersion(_MIN_NUMEXPR_VERSION):
31-
with tm.assert_produces_warning(UserWarning,
32-
check_stacklevel=False):
33-
reload(pd.computation)
3426
assert not _NUMEXPR_INSTALLED
3527
else:
3628
assert _NUMEXPR_INSTALLED
37-
3829
except ImportError:
3930
pytest.skip("not testing numexpr version compat")
4031

0 commit comments

Comments
 (0)