Prepare release 7.4.2
(cherry picked from commit b0c4775a28)
			
			
This commit is contained in:
		
							parent
							
								
									5936a79fdb
								
							
						
					
					
						commit
						0a06db0729
					
				|  | @ -1 +0,0 @@ | |||
| Fix doctest collection of `functools.cached_property` objects. | ||||
|  | @ -1 +0,0 @@ | |||
| Fixed bug using ``--importmode=importlib`` which would cause package ``__init__.py`` files to be imported more than once in some cases. | ||||
|  | @ -1 +0,0 @@ | |||
| Fixed bug where `user_properties` where not being saved in the JUnit XML file if a fixture failed during teardown. | ||||
|  | @ -1 +0,0 @@ | |||
| Improved disclaimer on pytest plugin reference page to better indicate this is an automated, non-curated listing. | ||||
|  | @ -1 +0,0 @@ | |||
| Fixed crash when parsing long command line arguments that might be interpreted as files. | ||||
|  | @ -6,6 +6,7 @@ Release announcements | |||
|    :maxdepth: 2 | ||||
| 
 | ||||
| 
 | ||||
|    release-7.4.2 | ||||
|    release-7.4.1 | ||||
|    release-7.4.0 | ||||
|    release-7.3.2 | ||||
|  |  | |||
|  | @ -0,0 +1,18 @@ | |||
| pytest-7.4.2 | ||||
| ======================================= | ||||
| 
 | ||||
| pytest 7.4.2 has just been released to PyPI. | ||||
| 
 | ||||
| This is a bug-fix release, being a drop-in replacement. To upgrade:: | ||||
| 
 | ||||
|   pip install --upgrade pytest | ||||
| 
 | ||||
| The full changelog is available at https://docs.pytest.org/en/stable/changelog.html. | ||||
| 
 | ||||
| Thanks to all of the contributors to this release: | ||||
| 
 | ||||
| * Bruno Oliveira | ||||
| 
 | ||||
| 
 | ||||
| Happy testing, | ||||
| The pytest Development Team | ||||
|  | @ -105,7 +105,7 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a | |||
|                 captured = capsys.readouterr() | ||||
|                 assert captured.out == "hello\n" | ||||
| 
 | ||||
|     doctest_namespace [session scope] -- .../_pytest/doctest.py:737 | ||||
|     doctest_namespace [session scope] -- .../_pytest/doctest.py:757 | ||||
|         Fixture that returns a :py:class:`dict` that will be injected into the | ||||
|         namespace of doctests. | ||||
| 
 | ||||
|  |  | |||
|  | @ -28,6 +28,31 @@ with advance notice in the **Deprecations** section of releases. | |||
| 
 | ||||
| .. towncrier release notes start | ||||
| 
 | ||||
| pytest 7.4.2 (2023-09-07) | ||||
| ========================= | ||||
| 
 | ||||
| Bug Fixes | ||||
| --------- | ||||
| 
 | ||||
| - `#11237 <https://github.com/pytest-dev/pytest/issues/11237>`_: Fix doctest collection of `functools.cached_property` objects. | ||||
| 
 | ||||
| 
 | ||||
| - `#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. | ||||
| 
 | ||||
| 
 | ||||
| - `#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. | ||||
| 
 | ||||
| 
 | ||||
| - `#11394 <https://github.com/pytest-dev/pytest/issues/11394>`_: Fixed crash when parsing long command line arguments that might be interpreted as files. | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| Improved Documentation | ||||
| ---------------------- | ||||
| 
 | ||||
| - `#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. | ||||
| 
 | ||||
| 
 | ||||
| pytest 7.4.1 (2023-09-02) | ||||
| ========================= | ||||
| 
 | ||||
|  |  | |||
|  | @ -554,13 +554,13 @@ Here is a nice run of several failures and how ``pytest`` presents things: | |||
|     E       AssertionError: assert False | ||||
|     E        +  where False = <built-in method startswith of str object at 0xdeadbeef0027>('456') | ||||
|     E        +    where <built-in method startswith of str object at 0xdeadbeef0027> = '123'.startswith | ||||
|     E        +      where '123' = <function TestMoreErrors.test_startswith_nested.<locals>.f at 0xdeadbeef0006>() | ||||
|     E        +    and   '456' = <function TestMoreErrors.test_startswith_nested.<locals>.g at 0xdeadbeef0029>() | ||||
|     E        +      where '123' = <function TestMoreErrors.test_startswith_nested.<locals>.f at 0xdeadbeef0029>() | ||||
|     E        +    and   '456' = <function TestMoreErrors.test_startswith_nested.<locals>.g at 0xdeadbeef002a>() | ||||
| 
 | ||||
|     failure_demo.py:235: AssertionError | ||||
|     _____________________ TestMoreErrors.test_global_func ______________________ | ||||
| 
 | ||||
|     self = <failure_demo.TestMoreErrors object at 0xdeadbeef002a> | ||||
|     self = <failure_demo.TestMoreErrors object at 0xdeadbeef002b> | ||||
| 
 | ||||
|         def test_global_func(self): | ||||
|     >       assert isinstance(globf(42), float) | ||||
|  | @ -571,18 +571,18 @@ Here is a nice run of several failures and how ``pytest`` presents things: | |||
|     failure_demo.py:238: AssertionError | ||||
|     _______________________ TestMoreErrors.test_instance _______________________ | ||||
| 
 | ||||
|     self = <failure_demo.TestMoreErrors object at 0xdeadbeef002b> | ||||
|     self = <failure_demo.TestMoreErrors object at 0xdeadbeef002c> | ||||
| 
 | ||||
|         def test_instance(self): | ||||
|             self.x = 6 * 7 | ||||
|     >       assert self.x != 42 | ||||
|     E       assert 42 != 42 | ||||
|     E        +  where 42 = <failure_demo.TestMoreErrors object at 0xdeadbeef002b>.x | ||||
|     E        +  where 42 = <failure_demo.TestMoreErrors object at 0xdeadbeef002c>.x | ||||
| 
 | ||||
|     failure_demo.py:242: AssertionError | ||||
|     _______________________ TestMoreErrors.test_compare ________________________ | ||||
| 
 | ||||
|     self = <failure_demo.TestMoreErrors object at 0xdeadbeef002c> | ||||
|     self = <failure_demo.TestMoreErrors object at 0xdeadbeef002d> | ||||
| 
 | ||||
|         def test_compare(self): | ||||
|     >       assert globf(10) < 5 | ||||
|  | @ -592,7 +592,7 @@ Here is a nice run of several failures and how ``pytest`` presents things: | |||
|     failure_demo.py:245: AssertionError | ||||
|     _____________________ TestMoreErrors.test_try_finally ______________________ | ||||
| 
 | ||||
|     self = <failure_demo.TestMoreErrors object at 0xdeadbeef002d> | ||||
|     self = <failure_demo.TestMoreErrors object at 0xdeadbeef002e> | ||||
| 
 | ||||
|         def test_try_finally(self): | ||||
|             x = 1 | ||||
|  | @ -603,7 +603,7 @@ Here is a nice run of several failures and how ``pytest`` presents things: | |||
|     failure_demo.py:250: AssertionError | ||||
|     ___________________ TestCustomAssertMsg.test_single_line ___________________ | ||||
| 
 | ||||
|     self = <failure_demo.TestCustomAssertMsg object at 0xdeadbeef002e> | ||||
|     self = <failure_demo.TestCustomAssertMsg object at 0xdeadbeef002f> | ||||
| 
 | ||||
|         def test_single_line(self): | ||||
|             class A: | ||||
|  | @ -618,7 +618,7 @@ Here is a nice run of several failures and how ``pytest`` presents things: | |||
|     failure_demo.py:261: AssertionError | ||||
|     ____________________ TestCustomAssertMsg.test_multiline ____________________ | ||||
| 
 | ||||
|     self = <failure_demo.TestCustomAssertMsg object at 0xdeadbeef002f> | ||||
|     self = <failure_demo.TestCustomAssertMsg object at 0xdeadbeef0030> | ||||
| 
 | ||||
|         def test_multiline(self): | ||||
|             class A: | ||||
|  | @ -637,7 +637,7 @@ Here is a nice run of several failures and how ``pytest`` presents things: | |||
|     failure_demo.py:268: AssertionError | ||||
|     ___________________ TestCustomAssertMsg.test_custom_repr ___________________ | ||||
| 
 | ||||
|     self = <failure_demo.TestCustomAssertMsg object at 0xdeadbeef0030> | ||||
|     self = <failure_demo.TestCustomAssertMsg object at 0xdeadbeef0031> | ||||
| 
 | ||||
|         def test_custom_repr(self): | ||||
|             class JSON: | ||||
|  |  | |||
|  | @ -22,7 +22,7 @@ Install ``pytest`` | |||
| .. code-block:: bash | ||||
| 
 | ||||
|     $ pytest --version | ||||
|     pytest 7.4.1 | ||||
|     pytest 7.4.2 | ||||
| 
 | ||||
| .. _`simpletest`: | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue