pytest 9.0.2

9.0.2
Fixed 4
  • 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
  • Fix the TOML type of the tmp_path_retention_count setting in the API reference from number to string
  • Restore the private config.inicfg attribute to working order using a compatibility shim after breaking changes in pytest 9.0.0
  • Fix quadratic-time behavior when handling unittest subtests in Python 3.10

From pytest

pytest 9.0.2 (2025-12-06)

Bug fixes
  • #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: Fixed the TOML type of the tmp_path_retention_count settings in the API reference from number to string.

  • #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: Fixed quadratic-time behavior when handling unittest subtests in Python 3.10.

Improved documentation
  • #4492: The API Reference now contains cross-reference-able documentation of pytest's command-line flags <command-line-flags>.
View original

Upgraded? How did it go?

Discussion