8.4.1
pytest 8.4.1 (2025-06-17)
Bug fixes
-
#13461: Corrected
_pytest.terminal.TerminalReporter.isattyto support
being called as a method. Before it was just a boolean which could
break correct code when using-o log_cli=true). -
#13477: Reintroduced
pytest.PytestReturnNotNoneWarning{.interpreted-text role="class"} which was removed by accident in pytest [8.4]{.title-ref}.This warning is raised when a test functions returns a value other than
None, which is often a mistake made by beginners.See
return-not-none{.interpreted-text role="ref"} for more information. -
#13497: Fixed compatibility with
Twisted 25+.
Improved documentation
- #13492: Fixed outdated warning about
faulthandlernot working on Windows.