Merge pull request #12094 from pytest-dev/release-8.1.1
Prepare release 8.1.1
This commit is contained in:
		
						commit
						abb0cf4922
					
				|  | @ -1 +0,0 @@ | ||||||
| Fixed regression where ``--importmode=importlib`` would import non-test modules more than once. |  | ||||||
|  | @ -1,8 +0,0 @@ | ||||||
| Delayed the deprecation of the following features to ``9.0.0``: |  | ||||||
| 
 |  | ||||||
| * :ref:`node-ctor-fspath-deprecation`. |  | ||||||
| * :ref:`legacy-path-hooks-deprecated`. |  | ||||||
| 
 |  | ||||||
| It was discovered after ``8.1.0`` was released that the warnings about the impeding removal were not being displayed, so the team decided to revert the removal. |  | ||||||
| 
 |  | ||||||
| This was the reason for ``8.1.0`` being yanked. |  | ||||||
|  | @ -6,6 +6,7 @@ Release announcements | ||||||
|    :maxdepth: 2 |    :maxdepth: 2 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |    release-8.1.1 | ||||||
|    release-8.1.0 |    release-8.1.0 | ||||||
|    release-8.0.2 |    release-8.0.2 | ||||||
|    release-8.0.1 |    release-8.0.1 | ||||||
|  |  | ||||||
|  | @ -0,0 +1,18 @@ | ||||||
|  | pytest-8.1.1 | ||||||
|  | ======================================= | ||||||
|  | 
 | ||||||
|  | pytest 8.1.1 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: | ||||||
|  | 
 | ||||||
|  | * Ran Benita | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | Happy testing, | ||||||
|  | The pytest Development Team | ||||||
|  | @ -170,10 +170,10 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a | ||||||
|             `pytest-xdist <https://github.com/pytest-dev/pytest-xdist>`__ plugin. See |             `pytest-xdist <https://github.com/pytest-dev/pytest-xdist>`__ plugin. See | ||||||
|             :issue:`7767` for details. |             :issue:`7767` for details. | ||||||
| 
 | 
 | ||||||
|     tmpdir_factory [session scope] -- .../_pytest/legacypath.py:317 |     tmpdir_factory [session scope] -- .../_pytest/legacypath.py:303 | ||||||
|         Return a :class:`pytest.TempdirFactory` instance for the test session. |         Return a :class:`pytest.TempdirFactory` instance for the test session. | ||||||
| 
 | 
 | ||||||
|     tmpdir -- .../_pytest/legacypath.py:324 |     tmpdir -- .../_pytest/legacypath.py:310 | ||||||
|         Return a temporary directory path object which is unique to each test |         Return a temporary directory path object which is unique to each test | ||||||
|         function invocation, created as a sub directory of the base temporary |         function invocation, created as a sub directory of the base temporary | ||||||
|         directory. |         directory. | ||||||
|  |  | ||||||
|  | @ -28,16 +28,13 @@ with advance notice in the **Deprecations** section of releases. | ||||||
| 
 | 
 | ||||||
| .. towncrier release notes start | .. towncrier release notes start | ||||||
| 
 | 
 | ||||||
| pytest 8.1.0 (YANKED) | pytest 8.1.1 (2024-03-08) | ||||||
| ===================== | ========================= | ||||||
| 
 |  | ||||||
| 
 | 
 | ||||||
| .. note:: | .. note:: | ||||||
| 
 | 
 | ||||||
|        This release has been **yanked**: it broke some plugins without the proper warning period, due to |        This release is not a usual bug fix release -- it contains features and improvements, being a follow up | ||||||
|        some warnings not showing up as expected. |        to ``8.1.0``, which has been yanked from PyPI. | ||||||
| 
 |  | ||||||
|        See `#12069 <https://github.com/pytest-dev/pytest/issues/12069>`__. |  | ||||||
| 
 | 
 | ||||||
| Features | Features | ||||||
| -------- | -------- | ||||||
|  | @ -94,6 +91,9 @@ Improvements | ||||||
| Bug Fixes | Bug Fixes | ||||||
| --------- | --------- | ||||||
| 
 | 
 | ||||||
|  | - `#11475 <https://github.com/pytest-dev/pytest/issues/11475>`_: Fixed regression where ``--importmode=importlib`` would import non-test modules more than once. | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| - `#11904 <https://github.com/pytest-dev/pytest/issues/11904>`_: Fixed a regression in pytest 8.0.0 that would cause test collection to fail due to permission errors when using ``--pyargs``. | - `#11904 <https://github.com/pytest-dev/pytest/issues/11904>`_: Fixed a regression in pytest 8.0.0 that would cause test collection to fail due to permission errors when using ``--pyargs``. | ||||||
| 
 | 
 | ||||||
|   This change improves the collection tree for tests specified using ``--pyargs``, see :pull:`12043` for a comparison with pytest 8.0 and <8. |   This change improves the collection tree for tests specified using ``--pyargs``, see :pull:`12043` for a comparison with pytest 8.0 and <8. | ||||||
|  | @ -108,7 +108,6 @@ Bug Fixes | ||||||
| - `#12039 <https://github.com/pytest-dev/pytest/issues/12039>`_: Fixed a regression in ``8.0.2`` where tests created using :fixture:`tmp_path` have been collected multiple times in CI under Windows. | - `#12039 <https://github.com/pytest-dev/pytest/issues/12039>`_: Fixed a regression in ``8.0.2`` where tests created using :fixture:`tmp_path` have been collected multiple times in CI under Windows. | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| Improved Documentation | Improved Documentation | ||||||
| ---------------------- | ---------------------- | ||||||
| 
 | 
 | ||||||
|  | @ -128,6 +127,28 @@ Trivial/Internal Changes | ||||||
|     If you really need to, copy the function from the previous pytest release. |     If you really need to, copy the function from the previous pytest release. | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | - `#12069 <https://github.com/pytest-dev/pytest/issues/12069>`_: Delayed the deprecation of the following features to ``9.0.0``: | ||||||
|  | 
 | ||||||
|  |   * :ref:`node-ctor-fspath-deprecation`. | ||||||
|  |   * :ref:`legacy-path-hooks-deprecated`. | ||||||
|  | 
 | ||||||
|  |   It was discovered after ``8.1.0`` was released that the warnings about the impeding removal were not being displayed, so the team decided to revert the removal. | ||||||
|  | 
 | ||||||
|  |   This is the reason for ``8.1.0`` being yanked. | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | pytest 8.1.0 (YANKED) | ||||||
|  | ===================== | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | .. note:: | ||||||
|  | 
 | ||||||
|  |        This release has been **yanked**: it broke some plugins without the proper warning period, due to | ||||||
|  |        some warnings not showing up as expected. | ||||||
|  | 
 | ||||||
|  |        See `#12069 <https://github.com/pytest-dev/pytest/issues/12069>`__. | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| pytest 8.0.2 (2024-02-24) | pytest 8.0.2 (2024-02-24) | ||||||
| ========================= | ========================= | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -162,7 +162,7 @@ objects, they are still using the default pytest representation: | ||||||
|     rootdir: /home/sweet/project |     rootdir: /home/sweet/project | ||||||
|     collected 8 items |     collected 8 items | ||||||
| 
 | 
 | ||||||
|     <Dir parametrize.rst-195> |     <Dir parametrize.rst-196> | ||||||
|       <Module test_time.py> |       <Module test_time.py> | ||||||
|         <Function test_timedistance_v0[a0-b0-expected0]> |         <Function test_timedistance_v0[a0-b0-expected0]> | ||||||
|         <Function test_timedistance_v0[a1-b1-expected1]> |         <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 | ||||||
|     rootdir: /home/sweet/project |     rootdir: /home/sweet/project | ||||||
|     collected 4 items |     collected 4 items | ||||||
| 
 | 
 | ||||||
|     <Dir parametrize.rst-195> |     <Dir parametrize.rst-196> | ||||||
|       <Module test_scenarios.py> |       <Module test_scenarios.py> | ||||||
|         <Class TestSampleWithScenarios> |         <Class TestSampleWithScenarios> | ||||||
|           <Function test_demo1[basic]> |           <Function test_demo1[basic]> | ||||||
|  | @ -318,7 +318,7 @@ Let's first see how it looks like at collection time: | ||||||
|     rootdir: /home/sweet/project |     rootdir: /home/sweet/project | ||||||
|     collected 2 items |     collected 2 items | ||||||
| 
 | 
 | ||||||
|     <Dir parametrize.rst-195> |     <Dir parametrize.rst-196> | ||||||
|       <Module test_backends.py> |       <Module test_backends.py> | ||||||
|         <Function test_db_initialized[d1]> |         <Function test_db_initialized[d1]> | ||||||
|         <Function test_db_initialized[d2]> |         <Function test_db_initialized[d2]> | ||||||
|  |  | ||||||
|  | @ -152,7 +152,7 @@ The test collection would look like this: | ||||||
|     configfile: pytest.ini |     configfile: pytest.ini | ||||||
|     collected 2 items |     collected 2 items | ||||||
| 
 | 
 | ||||||
|     <Dir pythoncollection.rst-196> |     <Dir pythoncollection.rst-197> | ||||||
|       <Module check_myapp.py> |       <Module check_myapp.py> | ||||||
|         <Class CheckMyApp> |         <Class CheckMyApp> | ||||||
|           <Function simple_check> |           <Function simple_check> | ||||||
|  | @ -215,7 +215,7 @@ You can always peek at the collection tree without running tests like this: | ||||||
|     configfile: pytest.ini |     configfile: pytest.ini | ||||||
|     collected 3 items |     collected 3 items | ||||||
| 
 | 
 | ||||||
|     <Dir pythoncollection.rst-196> |     <Dir pythoncollection.rst-197> | ||||||
|       <Dir CWD> |       <Dir CWD> | ||||||
|         <Module pythoncollection.py> |         <Module pythoncollection.py> | ||||||
|           <Function test_function> |           <Function test_function> | ||||||
|  |  | ||||||
|  | @ -22,7 +22,7 @@ Install ``pytest`` | ||||||
| .. code-block:: bash | .. code-block:: bash | ||||||
| 
 | 
 | ||||||
|     $ pytest --version |     $ pytest --version | ||||||
|     pytest 8.1.0 |     pytest 8.1.1 | ||||||
| 
 | 
 | ||||||
| .. _`simpletest`: | .. _`simpletest`: | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1418,7 +1418,7 @@ Running the above tests results in the following test IDs being used: | ||||||
|    rootdir: /home/sweet/project |    rootdir: /home/sweet/project | ||||||
|    collected 12 items |    collected 12 items | ||||||
| 
 | 
 | ||||||
|    <Dir fixtures.rst-214> |    <Dir fixtures.rst-215> | ||||||
|      <Module test_anothersmtp.py> |      <Module test_anothersmtp.py> | ||||||
|        <Function test_showhelo[smtp.gmail.com]> |        <Function test_showhelo[smtp.gmail.com]> | ||||||
|        <Function test_showhelo[mail.python.org]> |        <Function test_showhelo[mail.python.org]> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue