From 7460b1aa3132d3ecfd47e399ec248f4097986aa5 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Sun, 25 Feb 2024 00:24:32 +0200 Subject: [PATCH] Cherry pick 8.0.2 release notes (cherry picked from commit e53f79893212391c0bada5f1628b977371a09434) --- 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 4211213c1..000000000 --- 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 5aff5f7fd..000000000 --- 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 eb8771ad7..000000000 --- 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 780451146..5374e8c75 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 000000000..c42159c57 --- /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 88f676355..bdf5a1550 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 99afaded8..c6ac64899 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 89acb7d3b..7207ca2ae 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 114d69328..f19198864 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 bc45c3a29..329c568c0 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 - +