diff --git a/pandas/tests/computation/test_compat.py b/pandas/tests/computation/test_compat.py index 599d0c10336dc..693697f3f03bb 100644 --- a/pandas/tests/computation/test_compat.py +++ b/pandas/tests/computation/test_compat.py @@ -21,9 +21,7 @@ def test_compat(): try: import numexpr as ne ver = ne.__version__ - if ver == LooseVersion('2.4.4'): - assert not _NUMEXPR_INSTALLED - elif ver < LooseVersion('2.1'): + elif ver < LooseVersion('2.4.6'): with tm.assert_produces_warning(UserWarning, check_stacklevel=False): assert not _NUMEXPR_INSTALLED