pytest
pytest copied to clipboard
Disable assertion rewriting of external modules for `python_files = *.py`
https://github.com/pytest-dev/pytest/issues/10845#issuecomment-2802869441
i think that part deserves a new issue that specifically handles that part
cc @RonnyPfannschmidt @The-Compiler
For context, from https://github.com/pytest-dev/pytest/issues/10845#issuecomment-2577509473:
- pytest does assertion rewriting for everything (even third-party modules outside of the test
rootdir) ifpython_files = *.pyis set. IMHO that is a pytest bug, though I never really was deeply involved with the assertion rewriting code, so I'd love to hear what other maintainers think.