diff --git a/changelog/10452.bugfix.rst b/changelog/10452.bugfix.rst deleted file mode 100644 index d8f7dded4..000000000 --- a/changelog/10452.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix 'importlib.abc.TraversableResources' deprecation warning in Python 3.12. diff --git a/changelog/10457.bugfix.rst b/changelog/10457.bugfix.rst deleted file mode 100644 index 26522e9f0..000000000 --- a/changelog/10457.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -If a test is skipped from inside a fixture, the test summary now shows the test location instead of the fixture location. diff --git a/changelog/10506.bugfix.rst b/changelog/10506.bugfix.rst deleted file mode 100644 index 6b161f692..000000000 --- a/changelog/10506.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix bug where sometimes pytest would use the file system root directory as :ref:`rootdir ` on Windows. diff --git a/changelog/10607.bugfix.rst b/changelog/10607.bugfix.rst deleted file mode 100644 index e89504695..000000000 --- a/changelog/10607.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix a race condition when creating junitxml reports, which could occur when multiple instances of pytest execute in parallel. diff --git a/changelog/10641.bugfix.rst b/changelog/10641.bugfix.rst deleted file mode 100644 index ac293f6ae..000000000 --- a/changelog/10641.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix a race condition when creating or updating the stepwise plugin's cache, which could occur when multiple xdist worker nodes try to simultaneously update the stepwise plugin's cache. diff --git a/doc/en/announce/index.rst b/doc/en/announce/index.rst index 021cbd1af..4df322882 100644 --- a/doc/en/announce/index.rst +++ b/doc/en/announce/index.rst @@ -6,6 +6,7 @@ Release announcements :maxdepth: 2 + release-7.2.1 release-7.2.0 release-7.1.3 release-7.1.2 diff --git a/doc/en/announce/release-7.2.1.rst b/doc/en/announce/release-7.2.1.rst new file mode 100644 index 000000000..80ac7aff0 --- /dev/null +++ b/doc/en/announce/release-7.2.1.rst @@ -0,0 +1,25 @@ +pytest-7.2.1 +======================================= + +pytest 7.2.1 has just been released to PyPI. + +This is a bug-fix release, being a drop-in replacement. To upgrade:: + + pip install --upgrade pytest + +The full changelog is available at https://docs.pytest.org/en/stable/changelog.html. + +Thanks to all of the contributors to this release: + +* Anthony Sottile +* Bruno Oliveira +* Daniel Valenzuela +* Kadino +* Prerak Patel +* Ronny Pfannschmidt +* Santiago Castro +* s-padmanaban + + +Happy testing, +The pytest Development Team diff --git a/doc/en/builtin.rst b/doc/en/builtin.rst index 1f55ea156..4b6d8d844 100644 --- a/doc/en/builtin.rst +++ b/doc/en/builtin.rst @@ -119,7 +119,7 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a For more details: :ref:`doctest_namespace`. - pytestconfig [session scope] -- .../_pytest/fixtures.py:1351 + pytestconfig [session scope] -- .../_pytest/fixtures.py:1356 Session-scoped fixture that returns the session's :class:`pytest.Config` object. diff --git a/doc/en/changelog.rst b/doc/en/changelog.rst index e922dff71..988e083d0 100644 --- a/doc/en/changelog.rst +++ b/doc/en/changelog.rst @@ -28,6 +28,27 @@ with advance notice in the **Deprecations** section of releases. .. towncrier release notes start +pytest 7.2.1 (2023-01-13) +========================= + +Bug Fixes +--------- + +- `#10452 `_: Fix 'importlib.abc.TraversableResources' deprecation warning in Python 3.12. + + +- `#10457 `_: If a test is skipped from inside a fixture, the test summary now shows the test location instead of the fixture location. + + +- `#10506 `_: Fix bug where sometimes pytest would use the file system root directory as :ref:`rootdir ` on Windows. + + +- `#10607 `_: Fix a race condition when creating junitxml reports, which could occur when multiple instances of pytest execute in parallel. + + +- `#10641 `_: Fix a race condition when creating or updating the stepwise plugin's cache, which could occur when multiple xdist worker nodes try to simultaneously update the stepwise plugin's cache. + + pytest 7.2.0 (2022-10-23) ========================= diff --git a/doc/en/example/parametrize.rst b/doc/en/example/parametrize.rst index f81476839..df2859b14 100644 --- a/doc/en/example/parametrize.rst +++ b/doc/en/example/parametrize.rst @@ -504,9 +504,9 @@ Running it results in some skips if we don't have all the python interpreters in . $ pytest -rs -q multipython.py sssssssssssssssssssssssssss [100%] ========================= short test summary info ========================== - SKIPPED [9] multipython.py:29: 'python3.5' not found - SKIPPED [9] multipython.py:29: 'python3.6' not found - SKIPPED [9] multipython.py:29: 'python3.7' not found + SKIPPED [9] multipython.py:69: 'python3.5' not found + SKIPPED [9] multipython.py:69: 'python3.6' not found + SKIPPED [9] multipython.py:69: 'python3.7' not found 27 skipped in 0.12s Indirect parametrization of optional implementations/imports @@ -574,7 +574,7 @@ If you run this with reporting for skips enabled: test_module.py .s [100%] ========================= short test summary info ========================== - SKIPPED [1] conftest.py:12: could not import 'opt2': No module named 'opt2' + SKIPPED [1] test_module.py:3: could not import 'opt2': No module named 'opt2' ======================= 1 passed, 1 skipped in 0.12s ======================= You'll see that we don't have an ``opt2`` module and thus the second test run diff --git a/doc/en/getting-started.rst b/doc/en/getting-started.rst index 971982c2c..e109839bf 100644 --- a/doc/en/getting-started.rst +++ b/doc/en/getting-started.rst @@ -22,7 +22,7 @@ Install ``pytest`` .. code-block:: bash $ pytest --version - pytest 7.2.0 + pytest 7.2.1 .. _`simpletest`: