Skip to content

Commit 972f307

Browse files
committed
Prepare release version 8.3.3
1 parent 0dabdcf commit 972f307

18 files changed

+94
-28
lines changed

changelog/12446.bugfix.rst

-1
This file was deleted.

changelog/12659.bugfix.rst

-1
This file was deleted.

changelog/12663.doc.rst

-1
This file was deleted.

changelog/12667.bugfix.rst

-1
This file was deleted.

changelog/12678.doc.rst

-1
This file was deleted.

changelog/12744.bugfix.rst

-1
This file was deleted.

changelog/12745.bugfix.rst

-1
This file was deleted.

changelog/12769.misc.rst

-1
This file was deleted.

changelog/6682.bugfix.rst

-1
This file was deleted.

changelog/9422.bugfix.rst

-3
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.3
910
release-8.3.2
1011
release-8.3.1
1112
release-8.3.0

doc/en/announce/release-8.3.3.rst

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
pytest-8.3.3
2+
=======================================
3+
4+
pytest 8.3.3 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+
* Anthony Sottile
15+
* Avasam
16+
* Bruno Oliveira
17+
* Christian Clauss
18+
* Eugene Mwangi
19+
* Florian Bruhin
20+
* GTowers1
21+
* Nauman Ahmed
22+
* Pierre Sassoulas
23+
* Reagan Lee
24+
* Ronny Pfannschmidt
25+
* Stefaan Lippens
26+
* Sviatoslav Sydorenko (Святослав Сидоренко)
27+
* dongfangtianyu
28+
29+
30+
Happy testing,
31+
The pytest Development Team

doc/en/builtin.rst

+9-9
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:558
25+
cache -- .../_pytest/cacheprovider.py:556
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:1005
36+
capsysbinary -- .../_pytest/capture.py:1006
3737
Enable bytes capturing of writes to ``sys.stdout`` and ``sys.stderr``.
3838
3939
The captured output is made available via ``capsysbinary.readouterr()``
@@ -51,7 +51,7 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
5151
captured = capsysbinary.readouterr()
5252
assert captured.out == b"hello\n"
5353
54-
capfd -- .../_pytest/capture.py:1033
54+
capfd -- .../_pytest/capture.py:1034
5555
Enable text capturing of writes to file descriptors ``1`` and ``2``.
5656
5757
The captured output is made available via ``capfd.readouterr()`` method
@@ -69,7 +69,7 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
6969
captured = capfd.readouterr()
7070
assert captured.out == "hello\n"
7171
72-
capfdbinary -- .../_pytest/capture.py:1061
72+
capfdbinary -- .../_pytest/capture.py:1062
7373
Enable bytes capturing of writes to file descriptors ``1`` and ``2``.
7474
7575
The captured output is made available via ``capfd.readouterr()`` method
@@ -87,7 +87,7 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
8787
captured = capfdbinary.readouterr()
8888
assert captured.out == b"hello\n"
8989
90-
capsys -- .../_pytest/capture.py:977
90+
capsys -- .../_pytest/capture.py:978
9191
Enable text capturing of writes to ``sys.stdout`` and ``sys.stderr``.
9292
9393
The captured output is made available via ``capsys.readouterr()`` method
@@ -105,7 +105,7 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
105105
captured = capsys.readouterr()
106106
assert captured.out == "hello\n"
107107
108-
doctest_namespace [session scope] -- .../_pytest/doctest.py:740
108+
doctest_namespace [session scope] -- .../_pytest/doctest.py:741
109109
Fixture that returns a :py:class:`dict` that will be injected into the
110110
namespace of doctests.
111111
@@ -119,14 +119,14 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
119119
120120
For more details: :ref:`doctest_namespace`.
121121
122-
pytestconfig [session scope] -- .../_pytest/fixtures.py:1344
122+
pytestconfig [session scope] -- .../_pytest/fixtures.py:1345
123123
Session-scoped fixture that returns the session's :class:`pytest.Config`
124124
object.
125125
126126
Example::
127127
128128
def test_foo(pytestconfig):
129-
if pytestconfig.getoption("verbose") > 0:
129+
if pytestconfig.get_verbosity() > 0:
130130
...
131131
132132
record_property -- .../_pytest/junitxml.py:280
@@ -196,7 +196,7 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
196196
197197
.. _legacy_path: https://py.readthedocs.io/en/latest/path.html
198198
199-
caplog -- .../_pytest/logging.py:600
199+
caplog -- .../_pytest/logging.py:598
200200
Access and control log capturing.
201201
202202
Captured logs are available through the following properties/methods::

doc/en/changelog.rst

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

3232
.. towncrier release notes start
3333
34+
pytest 8.3.3 (2024-09-09)
35+
=========================
36+
37+
Bug fixes
38+
---------
39+
40+
- `#12446 <https://github.com/pytest-dev/pytest/issues/12446>`_: Avoid calling ``@property`` (and other instance descriptors) during fixture discovery -- by :user:`asottile`
41+
42+
43+
- `#12659 <https://github.com/pytest-dev/pytest/issues/12659>`_: Fixed the issue of not displaying assertion failure differences when using the parameter ``--import-mode=importlib`` in pytest>=8.1.
44+
45+
46+
- `#12667 <https://github.com/pytest-dev/pytest/issues/12667>`_: Fixed a regression where type change in `ExceptionInfo.errisinstance` caused `mypy` to fail.
47+
48+
49+
- `#12744 <https://github.com/pytest-dev/pytest/issues/12744>`_: Fixed typing compatibility with Python 3.9 or less -- replaced `typing.Self` with `typing_extensions.Self` -- by :user:`Avasam`
50+
51+
52+
- `#12745 <https://github.com/pytest-dev/pytest/issues/12745>`_: Fixed an issue with backslashes being incorrectly converted in nodeid paths on Windows, ensuring consistent path handling across environments.
53+
54+
55+
- `#6682 <https://github.com/pytest-dev/pytest/issues/6682>`_: Fixed bug where the verbosity levels where not being respected when printing the "msg" part of failed assertion (as in ``assert condition, msg``).
56+
57+
58+
- `#9422 <https://github.com/pytest-dev/pytest/issues/9422>`_: Fix bug where disabling the terminal plugin via ``-p no:terminal`` would cause crashes related to missing the ``verbose`` option.
59+
60+
-- by :user:`GTowers1`
61+
62+
63+
64+
Improved documentation
65+
----------------------
66+
67+
- `#12663 <https://github.com/pytest-dev/pytest/issues/12663>`_: Clarify that the `pytest_deselected` hook should be called from `pytest_collection_modifyitems` hook implementations when items are deselected.
68+
69+
70+
- `#12678 <https://github.com/pytest-dev/pytest/issues/12678>`_: Remove erroneous quotes from `tmp_path_retention_policy` example in docs.
71+
72+
73+
74+
Miscellaneous internal changes
75+
------------------------------
76+
77+
- `#12769 <https://github.com/pytest-dev/pytest/issues/12769>`_: Fix typos discovered by codespell and add codespell to pre-commit hooks.
78+
79+
3480
pytest 8.3.2 (2024-07-24)
3581
=========================
3682

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-203>
165+
<Dir parametrize.rst-204>
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-203>
242+
<Dir parametrize.rst-204>
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-203>
321+
<Dir parametrize.rst-204>
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-204>
155+
<Dir pythoncollection.rst-205>
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-204>
218+
<Dir pythoncollection.rst-205>
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.2
25+
pytest 8.3.3
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-223>
1421+
<Dir fixtures.rst-224>
14221422
<Module test_anothersmtp.py>
14231423
<Function test_showhelo[smtp.gmail.com]>
14241424
<Function test_showhelo[mail.python.org]>

0 commit comments

Comments
 (0)