From 246815de13791f5ea299963ee304ed35e5c28ae3 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Sat, 23 Apr 2022 11:37:08 -0300 Subject: [PATCH] Prepare release version 7.1.2 (#9881) Co-authored-by: pytest bot (cherry picked from commit df9df5574913b2e7753b8cf6ebbf06ed9fbde10d) --- changelog/9726.bugfix.rst | 1 - changelog/9820.bugfix.rst | 1 - changelog/9869.bugfix.rst | 2 -- changelog/9871.bugfix.rst | 2 -- doc/en/announce/index.rst | 1 + doc/en/announce/release-7.1.2.rst | 23 +++++++++++++++++++++++ doc/en/builtin.rst | 4 ++-- doc/en/changelog.rst | 20 ++++++++++++++++++++ doc/en/getting-started.rst | 2 +- 9 files changed, 47 insertions(+), 9 deletions(-) delete mode 100644 changelog/9726.bugfix.rst delete mode 100644 changelog/9820.bugfix.rst delete mode 100644 changelog/9869.bugfix.rst delete mode 100644 changelog/9871.bugfix.rst create mode 100644 doc/en/announce/release-7.1.2.rst diff --git a/changelog/9726.bugfix.rst b/changelog/9726.bugfix.rst deleted file mode 100644 index 66c04c4d90c..00000000000 --- a/changelog/9726.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -An unnecessary ``numpy`` import inside :func:`pytest.approx` was removed. diff --git a/changelog/9820.bugfix.rst b/changelog/9820.bugfix.rst deleted file mode 100644 index 03af940f2c4..00000000000 --- a/changelog/9820.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix comparison of ``dataclasses`` with ``InitVar``. diff --git a/changelog/9869.bugfix.rst b/changelog/9869.bugfix.rst deleted file mode 100644 index 9761d7f161b..00000000000 --- a/changelog/9869.bugfix.rst +++ /dev/null @@ -1,2 +0,0 @@ -Increase ``stacklevel`` for the ``NODE_CTOR_FSPATH_ARG`` deprecation to point to the -user's code, not pytest. diff --git a/changelog/9871.bugfix.rst b/changelog/9871.bugfix.rst deleted file mode 100644 index ed787b3da34..00000000000 --- a/changelog/9871.bugfix.rst +++ /dev/null @@ -1,2 +0,0 @@ -Fix a bizarre (and fortunately rare) bug where the `temp_path` fixture could raise -an internal error while attempting to get the current user's username. diff --git a/doc/en/announce/index.rst b/doc/en/announce/index.rst index 0da8b4037ed..bcc0b45664b 100644 --- a/doc/en/announce/index.rst +++ b/doc/en/announce/index.rst @@ -6,6 +6,7 @@ Release announcements :maxdepth: 2 + release-7.1.2 release-7.1.1 release-7.1.0 release-7.0.1 diff --git a/doc/en/announce/release-7.1.2.rst b/doc/en/announce/release-7.1.2.rst new file mode 100644 index 00000000000..ba33cdc694b --- /dev/null +++ b/doc/en/announce/release-7.1.2.rst @@ -0,0 +1,23 @@ +pytest-7.1.2 +======================================= + +pytest 7.1.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: + +* Anthony Sottile +* Bruno Oliveira +* Hugo van Kemenade +* Kian Eliasi +* Ran Benita +* Zac Hatfield-Dodds + + +Happy testing, +The pytest Development Team diff --git a/doc/en/builtin.rst b/doc/en/builtin.rst index 455ae88121f..77ae5a13028 100644 --- a/doc/en/builtin.rst +++ b/doc/en/builtin.rst @@ -170,10 +170,10 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a See https://docs.python.org/library/how-to/capture-warnings.html for information on warning categories. - tmp_path_factory [session scope] -- .../_pytest/tmpdir.py:183 + tmp_path_factory [session scope] -- .../_pytest/tmpdir.py:184 Return a :class:`pytest.TempPathFactory` instance for the test session. - tmp_path -- .../_pytest/tmpdir.py:198 + tmp_path -- .../_pytest/tmpdir.py:199 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 6ff85883e41..46e18d32255 100644 --- a/doc/en/changelog.rst +++ b/doc/en/changelog.rst @@ -28,6 +28,26 @@ with advance notice in the **Deprecations** section of releases. .. towncrier release notes start +pytest 7.1.2 (2022-04-23) +========================= + +Bug Fixes +--------- + +- `#9726 `_: An unnecessary ``numpy`` import inside :func:`pytest.approx` was removed. + + +- `#9820 `_: Fix comparison of ``dataclasses`` with ``InitVar``. + + +- `#9869 `_: Increase ``stacklevel`` for the ``NODE_CTOR_FSPATH_ARG`` deprecation to point to the + user's code, not pytest. + + +- `#9871 `_: Fix a bizarre (and fortunately rare) bug where the `temp_path` fixture could raise + an internal error while attempting to get the current user's username. + + pytest 7.1.1 (2022-03-17) ========================= diff --git a/doc/en/getting-started.rst b/doc/en/getting-started.rst index b856803f1f1..f7e03cc8b67 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.1.1 + pytest 7.1.2 .. _`simpletest`: