Skip to content

Commit 97960bd

Browse files
authored
Merge pull request #11835 from pytest-dev/release-8.0.0rc2
Prepare release version 8.0.0rc2
2 parents 44ffe07 + 6be0a3c commit 97960bd

14 files changed

+108
-22
lines changed

changelog/11233.feature.rst

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

changelog/11706.bugfix.rst

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

changelog/11758.bugfix.rst

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

changelog/11825.improvement.rst

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

changelog/9765.bugfix.rst

Lines changed: 0 additions & 3 deletions
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-8.0.0rc2
910
release-8.0.0rc1
1011
release-7.4.4
1112
release-7.4.3

doc/en/announce/release-8.0.0rc2.rst

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
pytest-8.0.0rc2
2+
=======================================
3+
4+
The pytest team is proud to announce the 8.0.0rc2 prerelease!
5+
6+
This is a prerelease, not intended for production use, but to test the upcoming features and improvements
7+
in order to catch any major problems before the final version is released to the major public.
8+
9+
We appreciate your help testing this out before the final release, making sure to report any
10+
regressions to our issue tracker:
11+
12+
https://github.com/pytest-dev/pytest/issues
13+
14+
When doing so, please include the string ``[prerelease]`` in the title.
15+
16+
You can upgrade from PyPI via:
17+
18+
pip install pytest==8.0.0rc2
19+
20+
Users are encouraged to take a look at the CHANGELOG carefully:
21+
22+
https://docs.pytest.org/en/release-8.0.0rc2/changelog.html
23+
24+
Thanks to all the contributors to this release:
25+
26+
* Ben Brown
27+
* Bruno Oliveira
28+
* Ran Benita
29+
30+
31+
Happy testing,
32+
The pytest Development Team

doc/en/changelog.rst

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

2929
.. towncrier release notes start
3030
31+
pytest 8.0.0rc2 (2024-01-17)
32+
============================
33+
34+
35+
Improvements
36+
------------
37+
38+
- `#11233 <https://github.com/pytest-dev/pytest/issues/11233>`_: Improvements to ``-r`` for xfailures and xpasses:
39+
40+
* Report tracebacks for xfailures when ``-rx`` is set.
41+
* Report captured output for xpasses when ``-rX`` is set.
42+
* For xpasses, add ``-`` in summary between test name and reason, to match how xfail is displayed.
43+
44+
- `#11825 <https://github.com/pytest-dev/pytest/issues/11825>`_: The :hook:`pytest_plugin_registered` hook has a new ``plugin_name`` parameter containing the name by which ``plugin`` is registered.
45+
46+
47+
Bug Fixes
48+
---------
49+
50+
- `#11706 <https://github.com/pytest-dev/pytest/issues/11706>`_: Fix reporting of teardown errors in higher-scoped fixtures when using `--maxfail` or `--stepwise`.
51+
52+
53+
- `#11758 <https://github.com/pytest-dev/pytest/issues/11758>`_: Fixed ``IndexError: string index out of range`` crash in ``if highlighted[-1] == "\n" and source[-1] != "\n"``.
54+
This bug was introduced in pytest 8.0.0rc1.
55+
56+
57+
- `#9765 <https://github.com/pytest-dev/pytest/issues/9765>`_, `#11816 <https://github.com/pytest-dev/pytest/issues/11816>`_: Fixed a frustrating bug that afflicted some users with the only error being ``assert mod not in mods``. The issue was caused by the fact that ``str(Path(mod))`` and ``mod.__file__`` don't necessarily produce the same string, and was being erroneously used interchangably in some places in the code.
58+
59+
This fix also broke the internal API of ``PytestPluginManager.consider_conftest`` by introducing a new parameter -- we mention this in case it is being used by external code, even if marked as *private*.
60+
61+
3162
pytest 8.0.0rc1 (2023-12-30)
3263
============================
3364

doc/en/example/parametrize.rst

Lines changed: 5 additions & 5 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-189>
165+
<Dir parametrize.rst-192>
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-189>
242+
<Dir parametrize.rst-192>
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-189>
321+
<Dir parametrize.rst-192>
322322
<Module test_backends.py>
323323
<Function test_db_initialized[d1]>
324324
<Function test_db_initialized[d2]>
@@ -503,10 +503,10 @@ Running it results in some skips if we don't have all the python interpreters in
503503
.. code-block:: pytest
504504
505505
. $ pytest -rs -q multipython.py
506-
ssssssssssss...ssssssssssss [100%]
506+
ssssssssssssssssssssssss... [100%]
507507
========================= short test summary info ==========================
508508
SKIPPED [12] multipython.py:68: 'python3.9' not found
509-
SKIPPED [12] multipython.py:68: 'python3.11' not found
509+
SKIPPED [12] multipython.py:68: 'python3.10' not found
510510
3 passed, 24 skipped in 0.12s
511511
512512
Parametrization of optional implementations/imports

doc/en/example/pythoncollection.rst

Lines changed: 2 additions & 2 deletions
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-190>
155+
<Dir pythoncollection.rst-193>
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-190>
218+
<Dir pythoncollection.rst-193>
219219
<Dir CWD>
220220
<Module pythoncollection.py>
221221
<Function test_function>

0 commit comments

Comments
 (0)