From 3d10b5148e03eb82b3ee29181dbdc73cf82699e2 Mon Sep 17 00:00:00 2001 From: pytest bot Date: Sat, 6 Dec 2025 21:07:49 +0000 Subject: [PATCH] Prepare release version 9.0.2 --- changelog/13896.bugfix.rst | 5 ----- changelog/13904.bugfix.rst | 1 - changelog/13946.bugfix.rst | 3 --- changelog/13965.bugfix.rst | 1 - changelog/4492.doc.rst | 1 - doc/en/announce/index.rst | 1 + doc/en/announce/release-9.0.2.rst | 22 ++++++++++++++++++++ doc/en/builtin.rst | 8 ++++---- doc/en/changelog.rst | 31 +++++++++++++++++++++++++++++ doc/en/example/parametrize.rst | 6 +++--- doc/en/example/pythoncollection.rst | 4 ++-- doc/en/getting-started.rst | 2 +- doc/en/how-to/fixtures.rst | 2 +- doc/en/reference/reference.rst | 2 +- 14 files changed, 66 insertions(+), 23 deletions(-) delete mode 100644 changelog/13896.bugfix.rst delete mode 100644 changelog/13904.bugfix.rst delete mode 100644 changelog/13946.bugfix.rst delete mode 100644 changelog/13965.bugfix.rst delete mode 100644 changelog/4492.doc.rst create mode 100644 doc/en/announce/release-9.0.2.rst diff --git a/changelog/13896.bugfix.rst b/changelog/13896.bugfix.rst deleted file mode 100644 index 187be00cc4d..00000000000 --- a/changelog/13896.bugfix.rst +++ /dev/null @@ -1,5 +0,0 @@ -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. diff --git a/changelog/13904.bugfix.rst b/changelog/13904.bugfix.rst deleted file mode 100644 index f5a42215ca8..00000000000 --- a/changelog/13904.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed the TOML type of the :confval:`tmp_path_retention_count` settings in the API reference from number to string. diff --git a/changelog/13946.bugfix.rst b/changelog/13946.bugfix.rst deleted file mode 100644 index d6cc5b703e4..00000000000 --- a/changelog/13946.bugfix.rst +++ /dev/null @@ -1,3 +0,0 @@ -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. diff --git a/changelog/13965.bugfix.rst b/changelog/13965.bugfix.rst deleted file mode 100644 index b910d6c5361..00000000000 --- a/changelog/13965.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed quadratic-time behavior when handling ``unittest`` subtests in Python 3.10. diff --git a/changelog/4492.doc.rst b/changelog/4492.doc.rst deleted file mode 100644 index 811994afb5c..00000000000 --- a/changelog/4492.doc.rst +++ /dev/null @@ -1 +0,0 @@ -The API Reference now contains cross-reference-able documentation of :ref:`pytest's command-line flags `. diff --git a/doc/en/announce/index.rst b/doc/en/announce/index.rst index 2859e6210ff..b92b8d4a56b 100644 --- a/doc/en/announce/index.rst +++ b/doc/en/announce/index.rst @@ -6,6 +6,7 @@ Release announcements :maxdepth: 2 + release-9.0.2 release-9.0.1 release-9.0.0 release-8.4.2 diff --git a/doc/en/announce/release-9.0.2.rst b/doc/en/announce/release-9.0.2.rst new file mode 100644 index 00000000000..f15a2dc8e13 --- /dev/null +++ b/doc/en/announce/release-9.0.2.rst @@ -0,0 +1,22 @@ +pytest-9.0.2 +======================================= + +pytest 9.0.2 has just been released to PyPI. + +This is a bug-fix release, being a drop-in replacement. + +The full changelog is available at https://docs.pytest.org/en/stable/changelog.html. + +Thanks to all of the contributors to this release: + +* Alex Waygood +* Bruno Oliveira +* Fazeel Usmani +* Florian Bruhin +* Ran Benita +* Tom Most +* 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) + + +Happy testing, +The pytest Development Team diff --git a/doc/en/builtin.rst b/doc/en/builtin.rst index 1a8d32effee..6a96bb0a304 100644 --- a/doc/en/builtin.rst +++ b/doc/en/builtin.rst @@ -53,7 +53,7 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a capteesys -- .../_pytest/capture.py:1028 Enable simultaneous text capturing and pass-through of writes - to ``sys.stdout`` and ``sys.stderr`` as defined by :option:`--capture`. + to ``sys.stdout`` and ``sys.stderr`` as defined by ``--capture=``. The captured output is made available via ``capteesys.readouterr()`` method @@ -61,7 +61,7 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a ``out`` and ``err`` will be ``text`` objects. The output is also passed-through, allowing it to be "live-printed", - reported, or both as defined by :option:`--capture`. + reported, or both as defined by ``--capture=``. Returns an instance of :class:`CaptureFixture[str] `. @@ -257,10 +257,10 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a subtests -- .../_pytest/subtests.py:129 Provides subtests functionality. - tmp_path_factory [session scope] -- .../_pytest/tmpdir.py:240 + tmp_path_factory [session scope] -- .../_pytest/tmpdir.py:243 Return a :class:`pytest.TempPathFactory` instance for the test session. - tmp_path -- .../_pytest/tmpdir.py:255 + tmp_path -- .../_pytest/tmpdir.py:258 Return a temporary directory (as :class:`pathlib.Path` object) which is unique to each test function invocation. The temporary directory is created as a subdirectory diff --git a/doc/en/changelog.rst b/doc/en/changelog.rst index 8f869634c73..b4e5cee694e 100644 --- a/doc/en/changelog.rst +++ b/doc/en/changelog.rst @@ -31,6 +31,37 @@ with advance notice in the **Deprecations** section of releases. .. towncrier release notes start +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 :confval:`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 :ref:`pytest's command-line flags `. + + pytest 9.0.1 (2025-11-12) ========================= diff --git a/doc/en/example/parametrize.rst b/doc/en/example/parametrize.rst index 40b63b28ec6..7aec1364953 100644 --- a/doc/en/example/parametrize.rst +++ b/doc/en/example/parametrize.rst @@ -162,7 +162,7 @@ objects, they are still using the default pytest representation: rootdir: /home/sweet/project collected 8 items - + @@ -239,7 +239,7 @@ If you just collect tests you'll also nicely see 'advanced' and 'basic' as varia rootdir: /home/sweet/project collected 4 items - + @@ -318,7 +318,7 @@ Let's first see how it looks like at collection time: rootdir: /home/sweet/project collected 2 items - + diff --git a/doc/en/example/pythoncollection.rst b/doc/en/example/pythoncollection.rst index ff694f746d7..339944c4758 100644 --- a/doc/en/example/pythoncollection.rst +++ b/doc/en/example/pythoncollection.rst @@ -142,7 +142,7 @@ The test collection would look like this: configfile: pytest.toml collected 2 items - + @@ -205,7 +205,7 @@ You can always peek at the collection tree without running tests like this: configfile: pytest.toml collected 3 items - + diff --git a/doc/en/getting-started.rst b/doc/en/getting-started.rst index 7365dcdc491..3ba30a90b34 100644 --- a/doc/en/getting-started.rst +++ b/doc/en/getting-started.rst @@ -20,7 +20,7 @@ Install ``pytest`` .. code-block:: bash $ pytest --version - pytest 9.0.1 + pytest 9.0.2 .. _`simpletest`: diff --git a/doc/en/how-to/fixtures.rst b/doc/en/how-to/fixtures.rst index b15b3a5497b..5c5a239e8d4 100644 --- a/doc/en/how-to/fixtures.rst +++ b/doc/en/how-to/fixtures.rst @@ -1423,7 +1423,7 @@ Running the above tests results in the following test IDs being used: rootdir: /home/sweet/project collected 12 items - + diff --git a/doc/en/reference/reference.rst b/doc/en/reference/reference.rst index 7c0a7916684..9d14e9147fc 100644 --- a/doc/en/reference/reference.rst +++ b/doc/en/reference/reference.rst @@ -3291,7 +3291,7 @@ All the command-line flags can also be obtained by running ``pytest --help``:: tests. Optional argument: glob (default: '*'). --cache-clear Remove all cache contents at start of test run --lfnf, --last-failed-no-failures={all,none} - With :option:`--lf`, determines whether to execute tests + With ``--lf``, determines whether to execute tests when there are no previously (known) failures or when no cached ``lastfailed`` data was found. ``all`` (the default) runs the full test suite