Skip to content

Commit 45f34df

Browse files
committed
Prepare release version 7.4.2
1 parent e4f022f commit 45f34df

11 files changed

+56
-17
lines changed

changelog/11237.bugfix.rst

-1
This file was deleted.

changelog/11306.bugfix.rst

-1
This file was deleted.

changelog/11367.bugfix.rst

-1
This file was deleted.

changelog/11391.doc.rst

-1
This file was deleted.

changelog/11394.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-7.4.2
910
release-7.4.1
1011
release-7.4.0
1112
release-7.3.2

doc/en/announce/release-7.4.2.rst

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
pytest-7.4.2
2+
=======================================
3+
4+
pytest 7.4.2 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+
16+
17+
Happy testing,
18+
The pytest Development Team

doc/en/builtin.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -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:737
108+
doctest_namespace [session scope] -- .../_pytest/doctest.py:757
109109
Fixture that returns a :py:class:`dict` that will be injected into the
110110
namespace of doctests.
111111

doc/en/changelog.rst

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

2929
.. towncrier release notes start
3030
31+
pytest 7.4.2 (2023-09-07)
32+
=========================
33+
34+
Bug Fixes
35+
---------
36+
37+
- `#11237 <https://github.com/pytest-dev/pytest/issues/11237>`_: Fix doctest collection of `functools.cached_property` objects.
38+
39+
40+
- `#11306 <https://github.com/pytest-dev/pytest/issues/11306>`_: Fixed bug using ``--importmode=importlib`` which would cause package ``__init__.py`` files to be imported more than once in some cases.
41+
42+
43+
- `#11367 <https://github.com/pytest-dev/pytest/issues/11367>`_: Fixed bug where `user_properties` where not being saved in the JUnit XML file if a fixture failed during teardown.
44+
45+
46+
- `#11394 <https://github.com/pytest-dev/pytest/issues/11394>`_: Fixed crash when parsing long command line arguments that might be interpreted as files.
47+
48+
49+
50+
Improved Documentation
51+
----------------------
52+
53+
- `#11391 <https://github.com/pytest-dev/pytest/issues/11391>`_: Improved disclaimer on pytest plugin reference page to better indicate this is an automated, non-curated listing.
54+
55+
3156
pytest 7.4.1 (2023-09-02)
3257
=========================
3358

doc/en/example/reportingdemo.rst

+10-10
Original file line numberDiff line numberDiff line change
@@ -554,13 +554,13 @@ Here is a nice run of several failures and how ``pytest`` presents things:
554554
E AssertionError: assert False
555555
E + where False = <built-in method startswith of str object at 0xdeadbeef0027>('456')
556556
E + where <built-in method startswith of str object at 0xdeadbeef0027> = '123'.startswith
557-
E + where '123' = <function TestMoreErrors.test_startswith_nested.<locals>.f at 0xdeadbeef0006>()
558-
E + and '456' = <function TestMoreErrors.test_startswith_nested.<locals>.g at 0xdeadbeef0029>()
557+
E + where '123' = <function TestMoreErrors.test_startswith_nested.<locals>.f at 0xdeadbeef0029>()
558+
E + and '456' = <function TestMoreErrors.test_startswith_nested.<locals>.g at 0xdeadbeef002a>()
559559
560560
failure_demo.py:235: AssertionError
561561
_____________________ TestMoreErrors.test_global_func ______________________
562562
563-
self = <failure_demo.TestMoreErrors object at 0xdeadbeef002a>
563+
self = <failure_demo.TestMoreErrors object at 0xdeadbeef002b>
564564
565565
def test_global_func(self):
566566
> assert isinstance(globf(42), float)
@@ -571,18 +571,18 @@ Here is a nice run of several failures and how ``pytest`` presents things:
571571
failure_demo.py:238: AssertionError
572572
_______________________ TestMoreErrors.test_instance _______________________
573573
574-
self = <failure_demo.TestMoreErrors object at 0xdeadbeef002b>
574+
self = <failure_demo.TestMoreErrors object at 0xdeadbeef002c>
575575
576576
def test_instance(self):
577577
self.x = 6 * 7
578578
> assert self.x != 42
579579
E assert 42 != 42
580-
E + where 42 = <failure_demo.TestMoreErrors object at 0xdeadbeef002b>.x
580+
E + where 42 = <failure_demo.TestMoreErrors object at 0xdeadbeef002c>.x
581581
582582
failure_demo.py:242: AssertionError
583583
_______________________ TestMoreErrors.test_compare ________________________
584584
585-
self = <failure_demo.TestMoreErrors object at 0xdeadbeef002c>
585+
self = <failure_demo.TestMoreErrors object at 0xdeadbeef002d>
586586
587587
def test_compare(self):
588588
> assert globf(10) < 5
@@ -592,7 +592,7 @@ Here is a nice run of several failures and how ``pytest`` presents things:
592592
failure_demo.py:245: AssertionError
593593
_____________________ TestMoreErrors.test_try_finally ______________________
594594
595-
self = <failure_demo.TestMoreErrors object at 0xdeadbeef002d>
595+
self = <failure_demo.TestMoreErrors object at 0xdeadbeef002e>
596596
597597
def test_try_finally(self):
598598
x = 1
@@ -603,7 +603,7 @@ Here is a nice run of several failures and how ``pytest`` presents things:
603603
failure_demo.py:250: AssertionError
604604
___________________ TestCustomAssertMsg.test_single_line ___________________
605605
606-
self = <failure_demo.TestCustomAssertMsg object at 0xdeadbeef002e>
606+
self = <failure_demo.TestCustomAssertMsg object at 0xdeadbeef002f>
607607
608608
def test_single_line(self):
609609
class A:
@@ -618,7 +618,7 @@ Here is a nice run of several failures and how ``pytest`` presents things:
618618
failure_demo.py:261: AssertionError
619619
____________________ TestCustomAssertMsg.test_multiline ____________________
620620
621-
self = <failure_demo.TestCustomAssertMsg object at 0xdeadbeef002f>
621+
self = <failure_demo.TestCustomAssertMsg object at 0xdeadbeef0030>
622622
623623
def test_multiline(self):
624624
class A:
@@ -637,7 +637,7 @@ Here is a nice run of several failures and how ``pytest`` presents things:
637637
failure_demo.py:268: AssertionError
638638
___________________ TestCustomAssertMsg.test_custom_repr ___________________
639639
640-
self = <failure_demo.TestCustomAssertMsg object at 0xdeadbeef0030>
640+
self = <failure_demo.TestCustomAssertMsg object at 0xdeadbeef0031>
641641
642642
def test_custom_repr(self):
643643
class JSON:

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

0 commit comments

Comments
 (0)