Skip to content

Commit d7d320a

Browse files
committed
Prepare release version 8.0.1
1 parent 9369916 commit d7d320a

13 files changed

+66
-30
lines changed

Diff for: changelog/11875.bugfix.rst

-1
This file was deleted.

Diff for: changelog/11879.bugfix.rst

-1
This file was deleted.

Diff for: changelog/11906.bugfix.rst

-1
This file was deleted.

Diff for: changelog/11907.bugfix.rst

-1
This file was deleted.

Diff for: changelog/11929.bugfix.rst

-1
This file was deleted.

Diff for: changelog/11937.bugfix.rst

-1
This file was deleted.

Diff for: 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.0.1
910
release-8.0.0
1011
release-8.0.0rc2
1112
release-8.0.0rc1

Diff for: doc/en/announce/release-8.0.1.rst

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
pytest-8.0.1
2+
=======================================
3+
4+
pytest 8.0.1 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+
* Clément Robert
16+
* Pierre Sassoulas
17+
* Ran Benita
18+
19+
20+
Happy testing,
21+
The pytest Development Team

Diff for: doc/en/builtin.rst

+15-19
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:526
25+
cache -- .../_pytest/cacheprovider.py:527
2626
Return a cache object that can persist state between testing sessions.
2727
2828
cache.get(key, default)
@@ -33,7 +33,7 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
3333
3434
Values can be any object handled by the json stdlib module.
3535
36-
capsysbinary -- .../_pytest/capture.py:1008
36+
capsysbinary -- .../_pytest/capture.py:1007
3737
Enable bytes capturing of writes to ``sys.stdout`` and ``sys.stderr``.
3838
3939
The captured output is made available via ``capsysbinary.readouterr()``
@@ -43,15 +43,14 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
4343
Returns an instance of :class:`CaptureFixture[bytes] <pytest.CaptureFixture>`.
4444
4545
Example:
46-
4746
.. code-block:: python
4847
4948
def test_output(capsysbinary):
5049
print("hello")
5150
captured = capsysbinary.readouterr()
5251
assert captured.out == b"hello\n"
5352
54-
capfd -- .../_pytest/capture.py:1036
53+
capfd -- .../_pytest/capture.py:1034
5554
Enable text capturing of writes to file descriptors ``1`` and ``2``.
5655
5756
The captured output is made available via ``capfd.readouterr()`` method
@@ -61,15 +60,14 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
6160
Returns an instance of :class:`CaptureFixture[str] <pytest.CaptureFixture>`.
6261
6362
Example:
64-
6563
.. code-block:: python
6664
6765
def test_system_echo(capfd):
6866
os.system('echo "hello"')
6967
captured = capfd.readouterr()
7068
assert captured.out == "hello\n"
7169
72-
capfdbinary -- .../_pytest/capture.py:1064
70+
capfdbinary -- .../_pytest/capture.py:1061
7371
Enable bytes capturing of writes to file descriptors ``1`` and ``2``.
7472
7573
The captured output is made available via ``capfd.readouterr()`` method
@@ -79,7 +77,6 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
7977
Returns an instance of :class:`CaptureFixture[bytes] <pytest.CaptureFixture>`.
8078
8179
Example:
82-
8380
.. code-block:: python
8481
8582
def test_system_echo(capfdbinary):
@@ -97,15 +94,14 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
9794
Returns an instance of :class:`CaptureFixture[str] <pytest.CaptureFixture>`.
9895
9996
Example:
100-
10197
.. code-block:: python
10298
10399
def test_output(capsys):
104100
print("hello")
105101
captured = capsys.readouterr()
106102
assert captured.out == "hello\n"
107103
108-
doctest_namespace [session scope] -- .../_pytest/doctest.py:743
104+
doctest_namespace [session scope] -- .../_pytest/doctest.py:745
109105
Fixture that returns a :py:class:`dict` that will be injected into the
110106
namespace of doctests.
111107
@@ -119,7 +115,7 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
119115
120116
For more details: :ref:`doctest_namespace`.
121117
122-
pytestconfig [session scope] -- .../_pytest/fixtures.py:1365
118+
pytestconfig [session scope] -- .../_pytest/fixtures.py:1354
123119
Session-scoped fixture that returns the session's :class:`pytest.Config`
124120
object.
125121
@@ -129,7 +125,7 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
129125
if pytestconfig.getoption("verbose") > 0:
130126
...
131127
132-
record_property -- .../_pytest/junitxml.py:284
128+
record_property -- .../_pytest/junitxml.py:283
133129
Add extra properties to the calling test.
134130
135131
User properties become part of the test report and are available to the
@@ -143,13 +139,13 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
143139
def test_function(record_property):
144140
record_property("example_key", 1)
145141
146-
record_xml_attribute -- .../_pytest/junitxml.py:307
142+
record_xml_attribute -- .../_pytest/junitxml.py:306
147143
Add extra xml attributes to the tag for the calling test.
148144
149145
The fixture is callable with ``name, value``. The value is
150146
automatically XML-encoded.
151147
152-
record_testsuite_property [session scope] -- .../_pytest/junitxml.py:345
148+
record_testsuite_property [session scope] -- .../_pytest/junitxml.py:344
153149
Record a new ``<property>`` tag as child of the root ``<testsuite>``.
154150
155151
This is suitable to writing global information regarding the entire test
@@ -174,10 +170,10 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
174170
`pytest-xdist <https://github.com/pytest-dev/pytest-xdist>`__ plugin. See
175171
:issue:`7767` for details.
176172
177-
tmpdir_factory [session scope] -- .../_pytest/legacypath.py:300
173+
tmpdir_factory [session scope] -- .../_pytest/legacypath.py:302
178174
Return a :class:`pytest.TempdirFactory` instance for the test session.
179175
180-
tmpdir -- .../_pytest/legacypath.py:307
176+
tmpdir -- .../_pytest/legacypath.py:309
181177
Return a temporary directory path object which is unique to each test
182178
function invocation, created as a sub directory of the base temporary
183179
directory.
@@ -207,7 +203,7 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
207203
* caplog.record_tuples -> list of (logger_name, level, message) tuples
208204
* caplog.clear() -> clear captured records and formatted log output string
209205
210-
monkeypatch -- .../_pytest/monkeypatch.py:30
206+
monkeypatch -- .../_pytest/monkeypatch.py:32
211207
A convenient fixture for monkey-patching.
212208
213209
The fixture provides these methods to modify objects, dictionaries, or
@@ -231,16 +227,16 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
231227
To undo modifications done by the fixture in a contained scope,
232228
use :meth:`context() <pytest.MonkeyPatch.context>`.
233229
234-
recwarn -- .../_pytest/recwarn.py:30
230+
recwarn -- .../_pytest/recwarn.py:32
235231
Return a :class:`WarningsRecorder` instance that records all warnings emitted by test functions.
236232
237233
See https://docs.pytest.org/en/latest/how-to/capture-warnings.html for information
238234
on warning categories.
239235
240-
tmp_path_factory [session scope] -- .../_pytest/tmpdir.py:239
236+
tmp_path_factory [session scope] -- .../_pytest/tmpdir.py:241
241237
Return a :class:`pytest.TempPathFactory` instance for the test session.
242238
243-
tmp_path -- .../_pytest/tmpdir.py:254
239+
tmp_path -- .../_pytest/tmpdir.py:256
244240
Return a temporary directory path object which is unique to each test
245241
function invocation, created as a sub directory of the base temporary
246242
directory.

Diff for: doc/en/changelog.rst

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

2929
.. towncrier release notes start
3030
31+
pytest 8.0.1 (2024-02-16)
32+
=========================
33+
34+
Bug Fixes
35+
---------
36+
37+
- `#11875 <https://github.com/pytest-dev/pytest/issues/11875>`_: Correctly handle errors from :func:`getpass.getuser` in Python 3.13.
38+
39+
40+
- `#11879 <https://github.com/pytest-dev/pytest/issues/11879>`_: Fix an edge case where ``ExceptionInfo._stringify_exception`` could crash :func:`pytest.raises`.
41+
42+
43+
- `#11906 <https://github.com/pytest-dev/pytest/issues/11906>`_: Fix regression with :func:`pytest.warns` using custom warning subclasses which have more than one parameter in their `__init__`.
44+
45+
46+
- `#11907 <https://github.com/pytest-dev/pytest/issues/11907>`_: Fix a regression in pytest 8.0.0 whereby calling :func:`pytest.skip` and similar control-flow exceptions within a :func:`pytest.warns()` block would get suppressed instead of propagating.
47+
48+
49+
- `#11929 <https://github.com/pytest-dev/pytest/issues/11929>`_: Fix a regression in pytest 8.0.0 whereby autouse fixtures defined in a module get ignored by the doctests in the module.
50+
51+
52+
- `#11937 <https://github.com/pytest-dev/pytest/issues/11937>`_: Fix a regression in pytest 8.0.0 whereby items would be collected in reverse order in some circumstances.
53+
54+
3155
pytest 8.0.0 (2024-01-27)
3256
=========================
3357

Diff for: doc/en/example/parametrize.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -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-
ssssssssssssssssssssssss... [100%]
506+
ssssssssssss...ssssssssssss [100%]
507507
========================= short test summary info ==========================
508-
SKIPPED [12] multipython.py:68: 'python3.9' not found
509-
SKIPPED [12] multipython.py:68: 'python3.10' not found
508+
SKIPPED [12] multipython.py:65: 'python3.9' not found
509+
SKIPPED [12] multipython.py:65: 'python3.11' not found
510510
3 passed, 24 skipped in 0.12s
511511
512512
Parametrization of optional implementations/imports

Diff for: 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.0.0
25+
pytest 8.0.1
2626
2727
.. _`simpletest`:
2828

Diff for: doc/en/reference/reference.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -2033,7 +2033,7 @@ All the command-line flags can be obtained by running ``pytest --help``::
20332033
failure
20342034
--doctest-glob=pat Doctests file matching pattern, default: test*.txt
20352035
--doctest-ignore-import-errors
2036-
Ignore doctest ImportErrors
2036+
Ignore doctest collection errors
20372037
--doctest-continue-on-failure
20382038
For a given doctest, continue to run after the first
20392039
failure

0 commit comments

Comments
 (0)