From 31afeeb0df0e8bdab1325b5992a2cc733e981e82 Mon Sep 17 00:00:00 2001 From: pytest bot Date: Sat, 24 Feb 2024 22:02:40 +0000 Subject: [PATCH] Prepare release version 8.0.2 --- changelog/11895.bugfix.rst | 1 - changelog/11953.bugfix.rst | 1 - changelog/12021.bugfix.rst | 1 - doc/en/announce/index.rst | 1 + doc/en/announce/release-8.0.2.rst | 18 ++++++++++++++++++ doc/en/changelog.rst | 15 +++++++++++++++ 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 +- 10 files changed, 41 insertions(+), 10 deletions(-) delete mode 100644 changelog/11895.bugfix.rst delete mode 100644 changelog/11953.bugfix.rst delete mode 100644 changelog/12021.bugfix.rst create mode 100644 doc/en/announce/release-8.0.2.rst diff --git a/changelog/11895.bugfix.rst b/changelog/11895.bugfix.rst deleted file mode 100644 index 4211213c1e5..00000000000 --- a/changelog/11895.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix collection on Windows where initial paths contain the short version of a path (for example ``c:\PROGRA~1\tests``). diff --git a/changelog/11953.bugfix.rst b/changelog/11953.bugfix.rst deleted file mode 100644 index 5aff5f7fdb7..00000000000 --- a/changelog/11953.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix an ``IndexError`` crash raising from ``getstatementrange_ast``. diff --git a/changelog/12021.bugfix.rst b/changelog/12021.bugfix.rst deleted file mode 100644 index eb8771ad720..00000000000 --- a/changelog/12021.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Reverted a fix to `--maxfail` handling in pytest 8.0.0 because it caused a regression in pytest-xdist whereby session fixture teardowns may get executed multiple times when the max-fails is reached. diff --git a/doc/en/announce/index.rst b/doc/en/announce/index.rst index 78045114667..5374e8c7596 100644 --- a/doc/en/announce/index.rst +++ b/doc/en/announce/index.rst @@ -6,6 +6,7 @@ Release announcements :maxdepth: 2 + release-8.0.2 release-8.0.1 release-8.0.0 release-8.0.0rc2 diff --git a/doc/en/announce/release-8.0.2.rst b/doc/en/announce/release-8.0.2.rst new file mode 100644 index 00000000000..c42159c57cf --- /dev/null +++ b/doc/en/announce/release-8.0.2.rst @@ -0,0 +1,18 @@ +pytest-8.0.2 +======================================= + +pytest 8.0.2 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: + +* Ran Benita + + +Happy testing, +The pytest Development Team diff --git a/doc/en/changelog.rst b/doc/en/changelog.rst index 2cdb04574ad..f01842c9b92 100644 --- a/doc/en/changelog.rst +++ b/doc/en/changelog.rst @@ -28,6 +28,21 @@ with advance notice in the **Deprecations** section of releases. .. towncrier release notes start +pytest 8.0.2 (2024-02-24) +========================= + +Bug Fixes +--------- + +- `#11895 `_: Fix collection on Windows where initial paths contain the short version of a path (for example ``c:\PROGRA~1\tests``). + + +- `#11953 `_: Fix an ``IndexError`` crash raising from ``getstatementrange_ast``. + + +- `#12021 `_: Reverted a fix to `--maxfail` handling in pytest 8.0.0 because it caused a regression in pytest-xdist whereby session fixture teardowns may get executed multiple times when the max-fails is reached. + + pytest 8.0.1 (2024-02-16) ========================= diff --git a/doc/en/example/parametrize.rst b/doc/en/example/parametrize.rst index 99afaded84c..c6ac6489979 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 89acb7d3b65..7207ca2ae63 100644 --- a/doc/en/example/pythoncollection.rst +++ b/doc/en/example/pythoncollection.rst @@ -152,7 +152,7 @@ The test collection would look like this: configfile: pytest.ini collected 2 items - + @@ -215,7 +215,7 @@ You can always peek at the collection tree without running tests like this: configfile: pytest.ini collected 3 items - + diff --git a/doc/en/getting-started.rst b/doc/en/getting-started.rst index 114d69328c2..f1919886495 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 8.0.1 + pytest 8.0.2 .. _`simpletest`: diff --git a/doc/en/how-to/fixtures.rst b/doc/en/how-to/fixtures.rst index 281b0d7f284..960e60c92b4 100644 --- a/doc/en/how-to/fixtures.rst +++ b/doc/en/how-to/fixtures.rst @@ -1418,7 +1418,7 @@ Running the above tests results in the following test IDs being used: rootdir: /home/sweet/project collected 12 items - +