Skip to content

Commit 98dff36

Browse files
committed
Prepare release version 8.3.4
1 parent 1b474e2 commit 98dff36

17 files changed

+91
-40
lines changed

changelog/10558.doc.rst

-1
This file was deleted.

changelog/10829.doc.rst

-1
This file was deleted.

changelog/12497.contrib.rst

-1
This file was deleted.

changelog/12592.bugfix.rst

-1
This file was deleted.

changelog/12818.bugfix.rst

-1
This file was deleted.

changelog/12849.bugfix.rst

-1
This file was deleted.

changelog/12866.doc.rst

-1
This file was deleted.

changelog/12966.doc.rst

-1
This file was deleted.

changelog/9353.bugfix.rst

-1
This file was deleted.

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.3.4
910
release-8.3.3
1011
release-8.3.2
1112
release-8.3.1

doc/en/announce/release-8.3.4.rst

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
pytest-8.3.4
2+
=======================================
3+
4+
pytest 8.3.4 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+
* Florian Bruhin
16+
* Frank Hoffmann
17+
* Jakob van Santen
18+
* Leonardus Chen
19+
* Pierre Sassoulas
20+
* Pradeep Kumar
21+
* Ran Benita
22+
* Serge Smertin
23+
* Stefaan Lippens
24+
* Sviatoslav Sydorenko (Святослав Сидоренко)
25+
* dongfangtianyu
26+
* suspe
27+
28+
29+
Happy testing,
30+
The pytest Development Team

doc/en/builtin.rst

+12-24
Original file line numberDiff line numberDiff line change
@@ -178,16 +178,11 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
178178
Return a :class:`pytest.TempdirFactory` instance for the test session.
179179
180180
tmpdir -- .../_pytest/legacypath.py:305
181-
Return a temporary directory path object which is unique to each test
182-
function invocation, created as a sub directory of the base temporary
183-
directory.
184-
185-
By default, a new base temporary directory is created each test session,
186-
and old bases are removed after 3 sessions, to aid in debugging. If
187-
``--basetemp`` is used then it is cleared each session. See
188-
:ref:`temporary directory location and retention`.
189-
190-
The returned object is a `legacy_path`_ object.
181+
Return a temporary directory (as `legacy_path`_ object)
182+
which is unique to each test function invocation.
183+
The temporary directory is created as a subdirectory
184+
of the base temporary directory, with configurable retention,
185+
as discussed in :ref:`temporary directory location and retention`.
191186
192187
.. note::
193188
These days, it is preferred to use ``tmp_path``.
@@ -236,22 +231,15 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
236231
237232
See :ref:`warnings` for information on warning categories.
238233
239-
tmp_path_factory [session scope] -- .../_pytest/tmpdir.py:242
234+
tmp_path_factory [session scope] -- .../_pytest/tmpdir.py:241
240235
Return a :class:`pytest.TempPathFactory` instance for the test session.
241236
242-
tmp_path -- .../_pytest/tmpdir.py:257
243-
Return a temporary directory path object which is unique to each test
244-
function invocation, created as a sub directory of the base temporary
245-
directory.
246-
247-
By default, a new base temporary directory is created each test session,
248-
and old bases are removed after 3 sessions, to aid in debugging.
249-
This behavior can be configured with :confval:`tmp_path_retention_count` and
250-
:confval:`tmp_path_retention_policy`.
251-
If ``--basetemp`` is used then it is cleared each session. See
252-
:ref:`temporary directory location and retention`.
253-
254-
The returned object is a :class:`pathlib.Path` object.
237+
tmp_path -- .../_pytest/tmpdir.py:256
238+
Return a temporary directory (as :class:`pathlib.Path` object)
239+
which is unique to each test function invocation.
240+
The temporary directory is created as a subdirectory
241+
of the base temporary directory, with configurable retention,
242+
as discussed in :ref:`temporary directory location and retention`.
255243
256244
257245
========================== no tests ran in 0.12s ===========================

doc/en/changelog.rst

+41
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,47 @@ with advance notice in the **Deprecations** section of releases.
3131

3232
.. towncrier release notes start
3333
34+
pytest 8.3.4 (2024-12-01)
35+
=========================
36+
37+
Bug fixes
38+
---------
39+
40+
- `#12592 <https://github.com/pytest-dev/pytest/issues/12592>`_: Fixed :class:`KeyError` crash when using ``--import-mode=importlib`` in a directory layout where a directory contains a child directory with the same name.
41+
42+
43+
- `#12818 <https://github.com/pytest-dev/pytest/issues/12818>`_: Assertion rewriting now preserves the source ranges of the original instructions, making it play well with tools that deal with the ``AST``, like `executing <https://github.com/alexmojaki/executing>`__.
44+
45+
46+
- `#12849 <https://github.com/pytest-dev/pytest/issues/12849>`_: ANSI escape codes for colored output now handled correctly in :func:`pytest.fail` with `pytrace=False`.
47+
48+
49+
- `#9353 <https://github.com/pytest-dev/pytest/issues/9353>`_: :func:`pytest.approx` now uses strict equality when given booleans.
50+
51+
52+
53+
Improved documentation
54+
----------------------
55+
56+
- `#10558 <https://github.com/pytest-dev/pytest/issues/10558>`_: Fix ambiguous docstring of :func:`pytest.Config.getoption`.
57+
58+
59+
- `#10829 <https://github.com/pytest-dev/pytest/issues/10829>`_: Improve documentation on the current handling of the ``--basetemp`` option and its lack of retention functionality (:ref:`temporary directory location and retention`).
60+
61+
62+
- `#12866 <https://github.com/pytest-dev/pytest/issues/12866>`_: Improved cross-references concerning the :fixture:`recwarn` fixture.
63+
64+
65+
- `#12966 <https://github.com/pytest-dev/pytest/issues/12966>`_: Clarify :ref:`filterwarnings` docs on filter precedence/order when using multiple :ref:`@pytest.mark.filterwarnings <pytest.mark.filterwarnings ref>` marks.
66+
67+
68+
69+
Contributor-facing changes
70+
--------------------------
71+
72+
- `#12497 <https://github.com/pytest-dev/pytest/issues/12497>`_: Fixed two failing pdb-related tests on Python 3.13.
73+
74+
3475
pytest 8.3.3 (2024-09-09)
3576
=========================
3677

doc/en/example/parametrize.rst

+3-3
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-204>
165+
<Dir parametrize.rst-205>
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-204>
242+
<Dir parametrize.rst-205>
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-204>
321+
<Dir parametrize.rst-205>
322322
<Module test_backends.py>
323323
<Function test_db_initialized[d1]>
324324
<Function test_db_initialized[d2]>

doc/en/example/pythoncollection.rst

+2-2
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-205>
155+
<Dir pythoncollection.rst-206>
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-205>
218+
<Dir pythoncollection.rst-206>
219219
<Dir CWD>
220220
<Module pythoncollection.py>
221221
<Function test_function>

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.3.3
25+
pytest 8.3.4
2626
2727
.. _`simpletest`:
2828

doc/en/how-to/fixtures.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,7 @@ Running the above tests results in the following test IDs being used:
14181418
rootdir: /home/sweet/project
14191419
collected 12 items
14201420
1421-
<Dir fixtures.rst-224>
1421+
<Dir fixtures.rst-225>
14221422
<Module test_anothersmtp.py>
14231423
<Function test_showhelo[smtp.gmail.com]>
14241424
<Function test_showhelo[mail.python.org]>

0 commit comments

Comments
 (0)