Skip to content

Commit

Permalink
Simplify and remove UserWarning testing on numexpr import
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesc Alted committed Feb 15, 2017
1 parent e1b34a9 commit c417fe2
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pandas/tests/computation/test_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@
from pandas.computation.engines import _engines
import pandas.computation.expr as expr
from pandas.computation import _MIN_NUMEXPR_VERSION
# Get reload for Python 3.4 and on, if not, use internal reload()
try:
from importlib import reload
except ImportError:
pass

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

Expand All @@ -28,13 +23,9 @@ def test_compat():
import numexpr as ne
ver = ne.__version__
if ver < LooseVersion(_MIN_NUMEXPR_VERSION):
with tm.assert_produces_warning(UserWarning,
check_stacklevel=False):
reload(pd.computation)
assert not _NUMEXPR_INSTALLED
else:
assert _NUMEXPR_INSTALLED

except ImportError:
pytest.skip("not testing numexpr version compat")

Expand Down

0 comments on commit c417fe2

Please sign in to comment.