Skip to content

Commit 329d371

Browse files
committed
Prepare release version 8.2.2
1 parent 214d098 commit 329d371

14 files changed

+58
-16
lines changed

changelog/12290.doc.rst

-1
This file was deleted.

changelog/12355.bugfix.rst

-1
This file was deleted.

changelog/12356.doc.rst

-2
This file was deleted.

changelog/12363.doc.rst

-1
This file was deleted.

changelog/12367.bugfix.rst

-1
This file was deleted.

changelog/12381.bugfix.rst

-1
This file was deleted.

doc/en/announce/index.rst

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Release announcements
66
:maxdepth: 2
77

88

9+
release-8.2.2
910
release-8.2.1
1011
release-8.2.0
1112
release-8.1.2

doc/en/announce/release-8.2.2.rst

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
pytest-8.2.2
2+
=======================================
3+
4+
pytest 8.2.2 has just been released to PyPI.
5+
6+
This is a bug-fix release, being a drop-in replacement. To upgrade::
7+
8+
pip install --upgrade pytest
9+
10+
The full changelog is available at https://docs.pytest.org/en/stable/changelog.html.
11+
12+
Thanks to all of the contributors to this release:
13+
14+
* Bruno Oliveira
15+
* Ran Benita
16+
17+
18+
Happy testing,
19+
The pytest Development Team

doc/en/builtin.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
2222
cachedir: .pytest_cache
2323
rootdir: /home/sweet/project
2424
collected 0 items
25-
cache -- .../_pytest/cacheprovider.py:549
25+
cache -- .../_pytest/cacheprovider.py:560
2626
Return a cache object that can persist state between testing sessions.
2727
2828
cache.get(key, default)
@@ -115,7 +115,7 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
115115
116116
For more details: :ref:`doctest_namespace`.
117117
118-
pytestconfig [session scope] -- .../_pytest/fixtures.py:1335
118+
pytestconfig [session scope] -- .../_pytest/fixtures.py:1338
119119
Session-scoped fixture that returns the session's :class:`pytest.Config`
120120
object.
121121

doc/en/changelog.rst

+29
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,35 @@ with advance notice in the **Deprecations** section of releases.
2828

2929
.. towncrier release notes start
3030
31+
pytest 8.2.2 (2024-06-04)
32+
=========================
33+
34+
Bug Fixes
35+
---------
36+
37+
- `#12355 <https://github.com/pytest-dev/pytest/issues/12355>`_: Fix possible catastrophic performance slowdown on a certain parametrization pattern involving many higher-scoped parameters.
38+
39+
40+
- `#12367 <https://github.com/pytest-dev/pytest/issues/12367>`_: Fix a regression in pytest 8.2.0 where unittest class instances (a fresh one is created for each test) were not released promptly on test teardown but only on session teardown.
41+
42+
43+
- `#12381 <https://github.com/pytest-dev/pytest/issues/12381>`_: Fix possible "Directory not empty" crashes arising from concurent cache dir (``.pytest_cache``) creation. Regressed in pytest 8.2.0.
44+
45+
46+
47+
Improved Documentation
48+
----------------------
49+
50+
- `#12290 <https://github.com/pytest-dev/pytest/issues/12290>`_: Updated Sphinx theme to use Furo instead of Flask, enabling Dark mode theme.
51+
52+
53+
- `#12356 <https://github.com/pytest-dev/pytest/issues/12356>`_: Added a subsection to the documentation for debugging flaky tests to mention
54+
lack of thread safety in pytest as a possible source of flakyness.
55+
56+
57+
- `#12363 <https://github.com/pytest-dev/pytest/issues/12363>`_: The documentation webpages now links to a canonical version to reduce outdated documentation in search engine results.
58+
59+
3160
pytest 8.2.1 (2024-05-19)
3261
=========================
3362

doc/en/example/parametrize.rst

+3-3
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-199>
165+
<Dir parametrize.rst-200>
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-199>
242+
<Dir parametrize.rst-200>
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-199>
321+
<Dir parametrize.rst-200>
322322
<Module test_backends.py>
323323
<Function test_db_initialized[d1]>
324324
<Function test_db_initialized[d2]>

doc/en/example/pythoncollection.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ The test collection would look like this:
152152
configfile: pytest.ini
153153
collected 2 items
154154
155-
<Dir pythoncollection.rst-200>
155+
<Dir pythoncollection.rst-201>
156156
<Module check_myapp.py>
157157
<Class CheckMyApp>
158158
<Function simple_check>
@@ -215,7 +215,7 @@ You can always peek at the collection tree without running tests like this:
215215
configfile: pytest.ini
216216
collected 3 items
217217
218-
<Dir pythoncollection.rst-200>
218+
<Dir pythoncollection.rst-201>
219219
<Dir CWD>
220220
<Module pythoncollection.py>
221221
<Function test_function>

doc/en/getting-started.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Install ``pytest``
2222
.. code-block:: bash
2323
2424
$ pytest --version
25-
pytest 8.2.1
25+
pytest 8.2.2
2626
2727
.. _`simpletest`:
2828

doc/en/how-to/fixtures.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,7 @@ Running the above tests results in the following test IDs being used:
14181418
rootdir: /home/sweet/project
14191419
collected 12 items
14201420
1421-
<Dir fixtures.rst-218>
1421+
<Dir fixtures.rst-219>
14221422
<Module test_anothersmtp.py>
14231423
<Function test_showhelo[smtp.gmail.com]>
14241424
<Function test_showhelo[mail.python.org]>

0 commit comments

Comments
 (0)