diff --git a/changelog/9355.bugfix.rst b/changelog/9355.bugfix.rst deleted file mode 100644 index a2739369fe0..00000000000 --- a/changelog/9355.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed error message prints function decorators when using assert in Python 3.8 and above. diff --git a/changelog/9396.bugfix.rst b/changelog/9396.bugfix.rst deleted file mode 100644 index dcb83bbc14f..00000000000 --- a/changelog/9396.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Ensure :attr:`pytest.Config.inifile` is available during the :func:`pytest_cmdline_main <_pytest.hookspec.pytest_cmdline_main>` hook (regression during ``7.0.0rc1``). diff --git a/changelog/9404.doc.rst b/changelog/9404.doc.rst deleted file mode 100644 index 70e4c6d5899..00000000000 --- a/changelog/9404.doc.rst +++ /dev/null @@ -1 +0,0 @@ -Added extra documentation on alternatives to common misuses of `pytest.warns(None)` ahead of its deprecation. diff --git a/changelog/9488.deprecation.rst b/changelog/9488.deprecation.rst deleted file mode 100644 index 5c5807ec34a..00000000000 --- a/changelog/9488.deprecation.rst +++ /dev/null @@ -1,7 +0,0 @@ -If custom subclasses of nodes like :class:`pytest.Item` override the -``__init__`` method, they should take ``**kwargs``. See -:ref:`uncooperative-constructors-deprecated` for details. - -Note that a deprection warning is only emitted when there is a conflict in the -arguments pytest expected to pass. This deprecation was already part of pytest -7.0.0rc1 but wasn't documented. diff --git a/changelog/9505.doc.rst b/changelog/9505.doc.rst deleted file mode 100644 index 51386c226bf..00000000000 --- a/changelog/9505.doc.rst +++ /dev/null @@ -1,2 +0,0 @@ -Clarify where the configuration files are located. To avoid confusions documentation mentions -that configuration file is located in the root of the repository. diff --git a/changelog/9521.trivial.rst b/changelog/9521.trivial.rst deleted file mode 100644 index 0c402ad242b..00000000000 --- a/changelog/9521.trivial.rst +++ /dev/null @@ -1 +0,0 @@ -Add test coverage to assertion rewrite path. diff --git a/doc/en/announce/index.rst b/doc/en/announce/index.rst index ccda9d536e3..75dde1bd6d9 100644 --- a/doc/en/announce/index.rst +++ b/doc/en/announce/index.rst @@ -6,6 +6,7 @@ Release announcements :maxdepth: 2 + release-7.0.0 release-7.0.0rc1 release-6.2.5 release-6.2.4 diff --git a/doc/en/announce/release-7.0.0.rst b/doc/en/announce/release-7.0.0.rst new file mode 100644 index 00000000000..3ce4335564f --- /dev/null +++ b/doc/en/announce/release-7.0.0.rst @@ -0,0 +1,74 @@ +pytest-7.0.0 +======================================= + +The pytest team is proud to announce the 7.0.0 release! + +This release contains new features, improvements, bug fixes, and breaking changes, so users +are encouraged to take a look at the CHANGELOG carefully: + + https://docs.pytest.org/en/stable/changelog.html + +For complete documentation, please visit: + + https://docs.pytest.org/en/stable/ + +As usual, you can upgrade from PyPI via: + + pip install -U pytest + +Thanks to all of the contributors to this release: + +* Adam J. Stewart +* Alexander King +* Amin Alaee +* Andrew Neitsch +* Anthony Sottile +* Ben Davies +* Bernát Gábor +* Brian Okken +* Bruno Oliveira +* Cristian Vera +* Dan Alvizu +* David Szotten +* Eddie +* Emmanuel Arias +* Emmanuel Meric de Bellefon +* Eric Liu +* Florian Bruhin +* GergelyKalmar +* Graeme Smecher +* Harshna +* Hugo van Kemenade +* Jakub Kulík +* James Myatt +* Jeff Rasley +* Kale Kundert +* Kian Meng, Ang +* Miro Hrončok +* Naveen-Pratap +* Oleg Höfling +* Olga Matoula +* Ran Benita +* Ronny Pfannschmidt +* Simon K +* Srip +* Sören Wegener +* Taneli Hukkinen +* Terje Runde +* Thomas Grainger +* Thomas Hisch +* William Jamir Silva +* Yuval Shimon +* Zac Hatfield-Dodds +* andrewdotn +* denivyruck +* ericluoliu +* oleg.hoefling +* symonk +* ziebam +* Éloi Rivard +* Éric + + +Happy testing, +The pytest Development Team diff --git a/doc/en/builtin.rst b/doc/en/builtin.rst index ba173ac196f..c7e7863b218 100644 --- a/doc/en/builtin.rst +++ b/doc/en/builtin.rst @@ -117,10 +117,10 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a `pytest-xdist `__ plugin. See :issue:`7767` for details. - tmpdir_factory [session scope] -- .../_pytest/legacypath.py:292 + tmpdir_factory [session scope] -- .../_pytest/legacypath.py:295 Return a :class:`pytest.TempdirFactory` instance for the test session. - tmpdir -- .../_pytest/legacypath.py:299 + tmpdir -- .../_pytest/legacypath.py:302 Return a temporary directory path object which is unique to each test function invocation, created as a sub directory of the base temporary directory. diff --git a/doc/en/changelog.rst b/doc/en/changelog.rst index 6896072e1ab..9605d6bcf00 100644 --- a/doc/en/changelog.rst +++ b/doc/en/changelog.rst @@ -28,6 +28,51 @@ with advance notice in the **Deprecations** section of releases. .. towncrier release notes start +pytest 7.0.0 (2022-02-03) +========================= + +(**Please see the full set of changes for this release also in the 7.0.0rc1 notes below**) + +Deprecations +------------ + +- `#9488 `_: If custom subclasses of nodes like :class:`pytest.Item` override the + ``__init__`` method, they should take ``**kwargs``. See + :ref:`uncooperative-constructors-deprecated` for details. + + Note that a deprection warning is only emitted when there is a conflict in the + arguments pytest expected to pass. This deprecation was already part of pytest + 7.0.0rc1 but wasn't documented. + + + +Bug Fixes +--------- + +- `#9355 `_: Fixed error message prints function decorators when using assert in Python 3.8 and above. + + +- `#9396 `_: Ensure :attr:`pytest.Config.inifile` is available during the :func:`pytest_cmdline_main <_pytest.hookspec.pytest_cmdline_main>` hook (regression during ``7.0.0rc1``). + + + +Improved Documentation +---------------------- + +- `#9404 `_: Added extra documentation on alternatives to common misuses of `pytest.warns(None)` ahead of its deprecation. + + +- `#9505 `_: Clarify where the configuration files are located. To avoid confusions documentation mentions + that configuration file is located in the root of the repository. + + + +Trivial/Internal Changes +------------------------ + +- `#9521 `_: Add test coverage to assertion rewrite path. + + pytest 7.0.0rc1 (2021-12-06) ============================ diff --git a/doc/en/getting-started.rst b/doc/en/getting-started.rst index 6b2ff672c59..310e93d887c 100644 --- a/doc/en/getting-started.rst +++ b/doc/en/getting-started.rst @@ -22,7 +22,7 @@ Install ``pytest`` .. code-block:: bash $ pytest --version - pytest 7.0.0rc1 + pytest 7.0.0 .. _`simpletest`: