Skip to content

TST: Potential inconistency between numpy and numexp #40748

Closed
@twoertwein

Description

@twoertwein

The loop variable engine should probably be used here instead of self.engine:

ev = pd.eval(ex, engine=self.engine, parser=self.parser)

Making this change leads to a few failed tests:

======================================================================== short test summary info =========================================================================
FAILED pandas/tests/computation/test_eval.py::TestEvalNumexprPandas::test_compound_invert_op[4-0-in] - AssertionError: Input are different
FAILED pandas/tests/computation/test_eval.py::TestEvalNumexprPandas::test_compound_invert_op[4-0-not in] - AssertionError: Input are different
FAILED pandas/tests/computation/test_eval.py::TestEvalNumexprPandas::test_compound_invert_op[4-1-in] - AssertionError: Input are different
FAILED pandas/tests/computation/test_eval.py::TestEvalNumexprPandas::test_compound_invert_op[4-1-not in] - AssertionError: Input are different
FAILED pandas/tests/computation/test_eval.py::TestEvalNumexprPandas::test_compound_invert_op[4-2-in] - AssertionError: Input are different
FAILED pandas/tests/computation/test_eval.py::TestEvalNumexprPandas::test_compound_invert_op[4-2-not in] - AssertionError: Input are different
FAILED pandas/tests/computation/test_eval.py::TestEvalNumexprPandas::test_compound_invert_op[4-3-in] - AssertionError: Input are different
FAILED pandas/tests/computation/test_eval.py::TestEvalNumexprPandas::test_compound_invert_op[4-3-not in] - AssertionError: Input are different

Metadata

Metadata

Assignees

No one assigned

    Labels

    Testingpandas testing functions or related to the test suiteexpressionspd.eval, query

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions