# pytest 8.4.1 - Product: pytest (https://whatsnew.fyi/product/pytest) - Vendor: pytest - Date: 2025-06-18 - Version: 8.4.1 - Original notes: https://github.com/pytest-dev/pytest/releases/tag/8.4.1 - Permalink: https://whatsnew.fyi/product/pytest/releases/8.4.1 What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: release facts (products, versions, dates, links, CVE ids and flags) are open data under CC BY 4.0, from the API at https://whatsnew.fyi/api/v1 or the nightly dataset at https://github.com/whatsnew-fyi/dataset. The summaries, labels and curation are © What's New: quote freely with attribution and a link back; wholesale republication of them is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. --- - **fixed** — 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 - **added** — Reintroduced pytest.PytestReturnNotNoneWarning which was removed by accident in pytest 8.4 - **fixed** — Fixed compatibility with Twisted 25+ #### pytest 8.4.1 (2025-06-17) ##### Bug fixes - [#13461](https://github.com/pytest-dev/pytest/issues/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](https://github.com/pytest-dev/pytest/issues/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](https://github.com/pytest-dev/pytest/issues/13497): Fixed compatibility with `Twisted 25+`. ##### Improved documentation - [#13492](https://github.com/pytest-dev/pytest/issues/13492): Fixed outdated warning about `faulthandler` not working on Windows.