Skip to content

Commit 24359be

Browse files
committed
Merge pull request #14031 from pytest-dev/release-9.0.2
Release 9.0.2 (cherry picked from commit 0dfc4c9)
1 parent 1e4b01d commit 24359be

File tree

14 files changed

+66
-23
lines changed

14 files changed

+66
-23
lines changed

changelog/13896.bugfix.rst

Lines changed: 0 additions & 5 deletions
This file was deleted.

changelog/13904.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/13946.bugfix.rst

Lines changed: 0 additions & 3 deletions
This file was deleted.

changelog/13965.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/4492.doc.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

doc/en/announce/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Release announcements
66
:maxdepth: 2
77

88

9+
release-9.0.2
910
release-9.0.1
1011
release-9.0.0
1112
release-8.4.2

doc/en/announce/release-9.0.2.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
pytest-9.0.2
2+
=======================================
3+
4+
pytest 9.0.2 has just been released to PyPI.
5+
6+
This is a bug-fix release, being a drop-in replacement.
7+
8+
The full changelog is available at https://docs.pytest.org/en/stable/changelog.html.
9+
10+
Thanks to all of the contributors to this release:
11+
12+
* Alex Waygood
13+
* Bruno Oliveira
14+
* Fazeel Usmani
15+
* Florian Bruhin
16+
* Ran Benita
17+
* Tom Most
18+
* 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко)
19+
20+
21+
Happy testing,
22+
The pytest Development Team

doc/en/builtin.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
5353
5454
capteesys -- .../_pytest/capture.py:1028
5555
Enable simultaneous text capturing and pass-through of writes
56-
to ``sys.stdout`` and ``sys.stderr`` as defined by :option:`--capture`.
56+
to ``sys.stdout`` and ``sys.stderr`` as defined by ``--capture=``.
5757
5858
5959
The captured output is made available via ``capteesys.readouterr()`` method
6060
calls, which return a ``(out, err)`` namedtuple.
6161
``out`` and ``err`` will be ``text`` objects.
6262
6363
The output is also passed-through, allowing it to be "live-printed",
64-
reported, or both as defined by :option:`--capture`.
64+
reported, or both as defined by ``--capture=``.
6565
6666
Returns an instance of :class:`CaptureFixture[str] <pytest.CaptureFixture>`.
6767
@@ -257,10 +257,10 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
257257
subtests -- .../_pytest/subtests.py:129
258258
Provides subtests functionality.
259259
260-
tmp_path_factory [session scope] -- .../_pytest/tmpdir.py:240
260+
tmp_path_factory [session scope] -- .../_pytest/tmpdir.py:243
261261
Return a :class:`pytest.TempPathFactory` instance for the test session.
262262
263-
tmp_path -- .../_pytest/tmpdir.py:255
263+
tmp_path -- .../_pytest/tmpdir.py:258
264264
Return a temporary directory (as :class:`pathlib.Path` object)
265265
which is unique to each test function invocation.
266266
The temporary directory is created as a subdirectory

doc/en/changelog.rst

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,37 @@ with advance notice in the **Deprecations** section of releases.
3131

3232
.. towncrier release notes start
3333
34+
pytest 9.0.2 (2025-12-06)
35+
=========================
36+
37+
Bug fixes
38+
---------
39+
40+
- `#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.
41+
42+
You may enable it again by passing ``-p terminalprogress``. We may enable it by default again once compatibility improves in the future.
43+
44+
Additionally, when the environment variable ``TERM`` is ``dumb``, the escape codes are no longer emitted, even if the plugin is enabled.
45+
46+
47+
- `#13904 <https://github.com/pytest-dev/pytest/issues/13904>`_: Fixed the TOML type of the :confval:`tmp_path_retention_count` settings in the API reference from number to string.
48+
49+
50+
- `#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.
51+
Due to its usage in the ecosystem, it is now restored to working order using a compatibility shim.
52+
It will be deprecated in pytest 9.1 and removed in pytest 10.
53+
54+
55+
- `#13965 <https://github.com/pytest-dev/pytest/issues/13965>`_: Fixed quadratic-time behavior when handling ``unittest`` subtests in Python 3.10.
56+
57+
58+
59+
Improved documentation
60+
----------------------
61+
62+
- `#4492 <https://github.com/pytest-dev/pytest/issues/4492>`_: The API Reference now contains cross-reference-able documentation of :ref:`pytest's command-line flags <command-line-flags>`.
63+
64+
3465
pytest 9.0.1 (2025-11-12)
3566
=========================
3667

doc/en/example/parametrize.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ objects, they are still using the default pytest representation:
162162
rootdir: /home/sweet/project
163163
collected 8 items
164164
165-
<Dir parametrize.rst-211>
165+
<Dir parametrize.rst-212>
166166
<Module test_time.py>
167167
<Function test_timedistance_v0[a0-b0-expected0]>
168168
<Function test_timedistance_v0[a1-b1-expected1]>
@@ -239,7 +239,7 @@ If you just collect tests you'll also nicely see 'advanced' and 'basic' as varia
239239
rootdir: /home/sweet/project
240240
collected 4 items
241241
242-
<Dir parametrize.rst-211>
242+
<Dir parametrize.rst-212>
243243
<Module test_scenarios.py>
244244
<Class TestSampleWithScenarios>
245245
<Function test_demo1[basic]>
@@ -318,7 +318,7 @@ Let's first see how it looks like at collection time:
318318
rootdir: /home/sweet/project
319319
collected 2 items
320320
321-
<Dir parametrize.rst-211>
321+
<Dir parametrize.rst-212>
322322
<Module test_backends.py>
323323
<Function test_db_initialized[d1]>
324324
<Function test_db_initialized[d2]>

0 commit comments

Comments
 (0)