# pytest 9.0.2 - Product: pytest (https://whatsnew.fyi/product/pytest) - Vendor: pytest - Date: 2025-12-06 - Version: 9.0.2 - Original notes: https://github.com/pytest-dev/pytest/releases/tag/9.0.2 - Permalink: https://whatsnew.fyi/product/pytest/releases/9.0.2 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** — Disable the terminal progress feature by default except on Windows due to compatibility issues with some terminal emulators, and do not emit escape codes when the TERM environment variable is dumb - **fixed** — Fix the TOML type of the tmp_path_retention_count setting in the API reference from number to string - **fixed** — Restore the private config.inicfg attribute to working order using a compatibility shim after breaking changes in pytest 9.0.0 - **fixed** — Fix quadratic-time behavior when handling unittest subtests in Python 3.10 #### pytest 9.0.2 (2025-12-06) ##### Bug fixes - [\#13896](https://github.com/pytest-dev/pytest/issues/13896): The terminal progress feature added in pytest 9.0.0 has been disabled by default, except on Windows, due to compatibility issues with some terminal emulators. You may enable it again by passing `-p terminalprogress`. We may enable it by default again once compatibility improves in the future. Additionally, when the environment variable `TERM` is `dumb`, the escape codes are no longer emitted, even if the plugin is enabled. - [\#13904](https://github.com/pytest-dev/pytest/issues/13904): Fixed the TOML type of the `tmp_path_retention_count` settings in the API reference from number to string. - [\#13946](https://github.com/pytest-dev/pytest/issues/13946): The private `config.inicfg` attribute was changed in a breaking manner in pytest 9.0.0. Due to its usage in the ecosystem, it is now restored to working order using a compatibility shim. It will be deprecated in pytest 9.1 and removed in pytest 10. - [\#13965](https://github.com/pytest-dev/pytest/issues/13965): Fixed quadratic-time behavior when handling `unittest` subtests in Python 3.10. ##### Improved documentation - [\#4492](https://github.com/pytest-dev/pytest/issues/4492): The API Reference now contains cross-reference-able documentation of `pytest's command-line flags `.