9.0.3
📦 pytestView on GitHub →
🐛 5 fixes🔧 2 symbols
Summary
Pytest 9.0.3 addresses several bugs, including fixes for pytest.approx comparison, exception group handling, and insecure temporary directory usage. It also explicitly disallows disabling conftest.py files via the -p no: option.
Migration Steps
- If you were relying on blocking conftest.py files via -p no:, update your command line arguments as this is now disallowed and raises UsageError.
🐛 Bug Fixes
- Fixed pytest.approx to correctly consider ~collections.abc.Mapping keys order during comparison.
- Explicitly disallowed blocking of a conftest.py file using the -p no: option, now raising a clear UsageError.
- Fixed crash when a test raises an exceptiongroup with __tracebackhide__ = True.
- Fixed non-string messages passed to unittest.TestCase.subTest() not being printed.
- Fixed use of insecure temporary directory (CVE-2025-71176).