Open heirecka opened 2 months ago
I can not reproduce your issue.
❯ python -m pytest
================================================================================================ test session starts ================================================================================================
platform linux -- Python 3.11.9, pytest-8.1.1, pluggy-1.5.0
rootdir: /home/frank/projects/executing
configfile: pyproject.toml
collected 208 items
tests/test_ipython.py .. [ 0%]
tests/test_main.py ..................ss..............................................................................................................................................................ssssssss [ 90%]
sssssss. [ 94%]
tests/test_pytest.py ............ [100%]
================================================================================================= warnings summary ==================================================================================================
tests/test_main.py::test_small_samples[4851dc1b626a95e97dbe0c53f96099d165b755dd1bd552c6ca771f7bca6d30f5.py]
/home/frank/projects/executing/tests/small_samples/4851dc1b626a95e97dbe0c53f96099d165b755dd1bd552c6ca771f7bca6d30f5.py:16: SyntaxWarning: "is" with a literal. Did you mean "=="?
if 1 < 1 > 1 == 1 >= 1 <= 1 != 1 in 1 not in 1 is 1 is not 1:
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
==================================================================================== 191 passed, 17 skipped, 1 warning in 7.59s =====================================================================================
One reason might be that some of your used plugins performs ast-rewriting or something else which causes this problem.
Indeed PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 makes the test pass.
You can try to find the specific plugin which causes the problems, but we might not be able to solve the issue if the reason is some modified ast.
test_global_tester_calls fails with python 3.11.9 here, it works fine with 3.12.5. Not sure what's the difference to github's CI, where it seems to pass, too.