We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c081199 commit e1b34a9Copy full SHA for e1b34a9
pandas/tests/computation/test_compat.py
@@ -11,7 +11,11 @@
11
from pandas.computation.engines import _engines
12
import pandas.computation.expr as expr
13
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
19
20
ENGINES_PARSERS = list(product(_engines, expr._parsers))
21
@@ -26,7 +30,8 @@ def test_compat():
26
30
if ver < LooseVersion(_MIN_NUMEXPR_VERSION):
27
31
with tm.assert_produces_warning(UserWarning,
28
32
check_stacklevel=False):
29
- assert not _NUMEXPR_INSTALLED
33
+ reload(pd.computation)
34
+ assert not _NUMEXPR_INSTALLED
35
else:
36
assert _NUMEXPR_INSTALLED
37
0 commit comments