Skip to content

Commit cec5bfe

Browse files
authored
Merge pull request #10881 from pytest-dev/release-7.3.0
Prepare release 7.3.0
2 parents 3683722 + ef982aa commit cec5bfe

21 files changed

+259
-72
lines changed

changelog/10226.improvement.rst

-1
This file was deleted.

changelog/10525.feature.rst

-1
This file was deleted.

changelog/10658.improvement.rst

-3
This file was deleted.

changelog/10669.trivial.rst

-1
This file was deleted.

changelog/10710.improvement.rst

-1
This file was deleted.

changelog/10727.improvement.rst

-1
This file was deleted.

changelog/10743.bugfix.rst

-1
This file was deleted.

changelog/10755.feature.rst

-1
This file was deleted.

changelog/10765.bugfix.rst

-1
This file was deleted.

changelog/10782.doc.rst

-1
This file was deleted.

changelog/10840.improvement.rst

-1
This file was deleted.

changelog/1904.bugfix.rst

-1
This file was deleted.

changelog/6267.improvement.rst

-2
This file was deleted.

changelog/7431.feature.rst

-1
This file was deleted.

changelog/8141.feature.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-7.3.0
910
release-7.2.2
1011
release-7.2.1
1112
release-7.2.0

doc/en/announce/release-7.3.0.rst

+130
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
pytest-7.3.0
2+
=======================================
3+
4+
The pytest team is proud to announce the 7.3.0 release!
5+
6+
This release contains new features, improvements, and bug fixes,
7+
the full list of changes is available in the changelog:
8+
9+
https://docs.pytest.org/en/stable/changelog.html
10+
11+
For complete documentation, please visit:
12+
13+
https://docs.pytest.org/en/stable/
14+
15+
As usual, you can upgrade from PyPI via:
16+
17+
pip install -U pytest
18+
19+
Thanks to all of the contributors to this release:
20+
21+
* Aaron Berdy
22+
* Adam Turner
23+
* Albert Villanova del Moral
24+
* Alessio Izzo
25+
* Alex Hadley
26+
* Alice Purcell
27+
* Anthony Sottile
28+
* Anton Yakutovich
29+
* Ashish Kurmi
30+
* Babak Keyvani
31+
* Billy
32+
* Brandon Chinn
33+
* Bruno Oliveira
34+
* Cal Jacobson
35+
* Chanvin Xiao
36+
* Cheuk Ting Ho
37+
* Chris Wheeler
38+
* Daniel Garcia Moreno
39+
* Daniel Scheffler
40+
* Daniel Valenzuela
41+
* EmptyRabbit
42+
* Ezio Melotti
43+
* Felix Hofstätter
44+
* Florian Best
45+
* Florian Bruhin
46+
* Fredrik Berndtsson
47+
* Gabriel Landau
48+
* Garvit Shubham
49+
* Gergely Kalmár
50+
* HTRafal
51+
* Hugo van Kemenade
52+
* Ilya Konstantinov
53+
* Itxaso Aizpurua
54+
* James Gerity
55+
* Jay
56+
* John Litborn
57+
* Jon Parise
58+
* Jouke Witteveen
59+
* Kadino
60+
* Kevin C
61+
* Kian Eliasi
62+
* Klaus Rettinghaus
63+
* Kodi Arfer
64+
* Mahesh Vashishtha
65+
* Manuel Jacob
66+
* Marko Pacak
67+
* MatthewFlamm
68+
* Miro Hrončok
69+
* Nate Meyvis
70+
* Neil Girdhar
71+
* Nhieuvu1802
72+
* Nipunn Koorapati
73+
* Ofek Lev
74+
* Paul Kehrer
75+
* Paul Müller
76+
* Paul Reece
77+
* Pax
78+
* Pete Baughman
79+
* Peyman Salehi
80+
* Philipp A
81+
* Pierre Sassoulas
82+
* Prerak Patel
83+
* Ramsey
84+
* Ran Benita
85+
* Robert O'Shea
86+
* Ronny Pfannschmidt
87+
* Rowin
88+
* Ruth Comer
89+
* Samuel Colvin
90+
* Samuel Gaist
91+
* Sandro Tosi
92+
* Santiago Castro
93+
* Shantanu
94+
* Simon K
95+
* Stefanie Molin
96+
* Stephen Rosen
97+
* Sviatoslav Sydorenko
98+
* Tatiana Ovary
99+
* Teejay
100+
* Thierry Moisan
101+
* Thomas Grainger
102+
* Tim Hoffmann
103+
* Tobias Diez
104+
* Tony Narlock
105+
* Vivaan Verma
106+
* Wolfremium
107+
* Yannick PÉROUX
108+
* Yusuke Kadowaki
109+
* Zac Hatfield-Dodds
110+
* Zach OBrien
111+
* aizpurua23a
112+
* bitzge
113+
* bluthej
114+
* gresm
115+
* holesch
116+
* itxasos23
117+
* johnkangw
118+
* q0w
119+
* rdb
120+
* s-padmanaban
121+
* skhomuti
122+
* sommersoft
123+
* vin01
124+
* wim glenn
125+
* wodny
126+
* zx.qiu
127+
128+
129+
Happy testing,
130+
The pytest Development Team

doc/en/changelog.rst

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

2929
.. towncrier release notes start
3030
31+
pytest 7.3.0 (2023-04-08)
32+
=========================
33+
34+
Features
35+
--------
36+
37+
- `#10525 <https://github.com/pytest-dev/pytest/issues/10525>`_: Test methods decorated with ``@classmethod`` can now be discovered as tests, following the same rules as normal methods. This fills the gap that static methods were discoverable as tests but not class methods.
38+
39+
40+
- `#10755 <https://github.com/pytest-dev/pytest/issues/10755>`_: :confval:`console_output_style` now supports ``progress-even-when-capture-no`` to force the use of the progress output even when capture is disabled. This is useful in large test suites where capture may have significant performance impact.
41+
42+
43+
- `#7431 <https://github.com/pytest-dev/pytest/issues/7431>`_: ``--log-disable`` CLI option added to disable individual loggers.
44+
45+
46+
- `#8141 <https://github.com/pytest-dev/pytest/issues/8141>`_: Added :confval:`tmp_path_retention_count` and :confval:`tmp_path_retention_policy` configuration options to control how directories created by the :fixture:`tmp_path` fixture are kept.
47+
48+
49+
50+
Improvements
51+
------------
52+
53+
- `#10226 <https://github.com/pytest-dev/pytest/issues/10226>`_: If multiple errors are raised in teardown, we now re-raise an ``ExceptionGroup`` of them instead of discarding all but the last.
54+
55+
56+
- `#10658 <https://github.com/pytest-dev/pytest/issues/10658>`_: Allow ``-p`` arguments to include spaces (eg: ``-p no:logging`` instead of
57+
``-pno:logging``). Mostly useful in the ``addopts`` section of the configuration
58+
file.
59+
60+
61+
- `#10710 <https://github.com/pytest-dev/pytest/issues/10710>`_: Added ``start`` and ``stop`` timestamps to ``TestReport`` objects.
62+
63+
64+
- `#10727 <https://github.com/pytest-dev/pytest/issues/10727>`_: Split the report header for ``rootdir``, ``config file`` and ``testpaths`` so each has its own line.
65+
66+
67+
- `#10840 <https://github.com/pytest-dev/pytest/issues/10840>`_: pytest should no longer crash on AST with pathological position attributes, for example testing AST produced by `Hylang <https://github.com/hylang/hy>__`.
68+
69+
70+
- `#6267 <https://github.com/pytest-dev/pytest/issues/6267>`_: The full output of a test is no longer truncated if the truncation message would be longer than
71+
the hidden text. The line number shown has also been fixed.
72+
73+
74+
75+
Bug Fixes
76+
---------
77+
78+
- `#10743 <https://github.com/pytest-dev/pytest/issues/10743>`_: The assertion rewriting mechanism now works correctly when assertion expressions contain the walrus operator.
79+
80+
81+
- `#10765 <https://github.com/pytest-dev/pytest/issues/10765>`_: Fixed :fixture:`tmp_path` fixture always raising :class:`OSError` on ``emscripten`` platform due to missing :func:`os.getuid`.
82+
83+
84+
- `#1904 <https://github.com/pytest-dev/pytest/issues/1904>`_: Correctly handle ``__tracebackhide__`` for chained exceptions.
85+
86+
87+
88+
Improved Documentation
89+
----------------------
90+
91+
- `#10782 <https://github.com/pytest-dev/pytest/issues/10782>`_: Fixed the minimal example in :ref:`goodpractices`: ``pip install -e .`` requires a ``version`` entry in ``pyproject.toml`` to run successfully.
92+
93+
94+
95+
Trivial/Internal Changes
96+
------------------------
97+
98+
- `#10669 <https://github.com/pytest-dev/pytest/issues/10669>`_: pytest no longer depends on the `attrs` package (don't worry, nice diffs for attrs classes are still supported).
99+
100+
31101
pytest 7.2.2 (2023-03-03)
32102
=========================
33103

doc/en/example/parametrize.rst

+6-2
Original file line numberDiff line numberDiff line change
@@ -502,8 +502,12 @@ Running it results in some skips if we don't have all the python interpreters in
502502
.. code-block:: pytest
503503
504504
. $ pytest -rs -q multipython.py
505-
........................... [100%]
506-
27 passed in 0.12s
505+
sssssssssssssssssssssssssss [100%]
506+
========================= short test summary info ==========================
507+
SKIPPED [9] multipython.py:69: 'python3.5' not found
508+
SKIPPED [9] multipython.py:69: 'python3.6' not found
509+
SKIPPED [9] multipython.py:69: 'python3.7' not found
510+
27 skipped in 0.12s
507511
508512
Indirect parametrization of optional implementations/imports
509513
--------------------------------------------------------------------

0 commit comments

Comments
 (0)