pytest 8.4.1

8.4.1
Added 1
  • Reintroduced pytest.PytestReturnNotNoneWarning which was removed by accident in pytest 8.4
Fixed 2
  • Corrected _pytest.terminal.TerminalReporter.isatty to support being called as a method instead of just a boolean, which could break code when using -o log_cli=true
  • Fixed compatibility with Twisted 25+

From pytest

pytest 8.4.1 (2025-06-17)

Bug fixes
  • #13461: Corrected _pytest.terminal.TerminalReporter.isatty to 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 faulthandler not working on Windows.
View original

Upgraded? How did it go?

Discussion