From f838c7b7eb0088a5cf6c247f158d455b15d0ccd6 Mon Sep 17 00:00:00 2001 From: pytest bot Date: Fri, 8 May 2020 11:14:08 +0000 Subject: [PATCH] Preparing release version 5.4.2 --- changelog/6871.bugfix.rst | 1 - changelog/6924.bugfix.rst | 1 - changelog/6925.bugfix.rst | 1 - changelog/6947.bugfix.rst | 1 - changelog/6951.bugfix.rst | 1 - changelog/6992.bugfix.rst | 1 - changelog/7110.bugfix.rst | 1 - changelog/7143.bugfix.rst | 1 - changelog/7145.bugfix.rst | 1 - changelog/7180.bugfix.rst | 1 - doc/en/announce/index.rst | 1 + doc/en/announce/release-5.4.2.rst | 22 +++++++++++++++++++ doc/en/changelog.rst | 36 +++++++++++++++++++++++++++++++ doc/en/writing_plugins.rst | 4 ++-- 14 files changed, 61 insertions(+), 12 deletions(-) delete mode 100644 changelog/6871.bugfix.rst delete mode 100644 changelog/6924.bugfix.rst delete mode 100644 changelog/6925.bugfix.rst delete mode 100644 changelog/6947.bugfix.rst delete mode 100644 changelog/6951.bugfix.rst delete mode 100644 changelog/6992.bugfix.rst delete mode 100644 changelog/7110.bugfix.rst delete mode 100644 changelog/7143.bugfix.rst delete mode 100644 changelog/7145.bugfix.rst delete mode 100644 changelog/7180.bugfix.rst create mode 100644 doc/en/announce/release-5.4.2.rst diff --git a/changelog/6871.bugfix.rst b/changelog/6871.bugfix.rst deleted file mode 100644 index fe69c750915..00000000000 --- a/changelog/6871.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix crash with captured output when using the :fixture:`capsysbinary fixture `. diff --git a/changelog/6924.bugfix.rst b/changelog/6924.bugfix.rst deleted file mode 100644 index 7283370a0e1..00000000000 --- a/changelog/6924.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Ensure a ``unittest.IsolatedAsyncioTestCase`` is actually awaited. diff --git a/changelog/6925.bugfix.rst b/changelog/6925.bugfix.rst deleted file mode 100644 index ed7e99b5dd2..00000000000 --- a/changelog/6925.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix TerminalRepr instances to be hashable again. diff --git a/changelog/6947.bugfix.rst b/changelog/6947.bugfix.rst deleted file mode 100644 index 3168df8434c..00000000000 --- a/changelog/6947.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix regression where functions registered with ``TestCase.addCleanup`` were not being called on test failures. diff --git a/changelog/6951.bugfix.rst b/changelog/6951.bugfix.rst deleted file mode 100644 index 984089b3a56..00000000000 --- a/changelog/6951.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Allow users to still set the deprecated ``TerminalReporter.writer`` attribute. diff --git a/changelog/6992.bugfix.rst b/changelog/6992.bugfix.rst deleted file mode 100644 index 2c9b0f89eea..00000000000 --- a/changelog/6992.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Revert "tmpdir: clean up indirection via config for factories" #6767 as it breaks pytest-xdist. diff --git a/changelog/7110.bugfix.rst b/changelog/7110.bugfix.rst deleted file mode 100644 index 935f6ea3c85..00000000000 --- a/changelog/7110.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed regression: ``asyncbase.TestCase`` tests are executed correctly again. diff --git a/changelog/7143.bugfix.rst b/changelog/7143.bugfix.rst deleted file mode 100644 index abf47dd0c2d..00000000000 --- a/changelog/7143.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix ``File.from_constructor`` so it forwards extra keyword arguments to the constructor. diff --git a/changelog/7145.bugfix.rst b/changelog/7145.bugfix.rst deleted file mode 100644 index def237dc0c9..00000000000 --- a/changelog/7145.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Classes with broken ``__getattribute__`` methods are displayed correctly during failures. diff --git a/changelog/7180.bugfix.rst b/changelog/7180.bugfix.rst deleted file mode 100644 index d2dd55e9b83..00000000000 --- a/changelog/7180.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix ``_is_setup_py`` for files encoded differently than locale. diff --git a/doc/en/announce/index.rst b/doc/en/announce/index.rst index 56e3172dd65..eeea782743d 100644 --- a/doc/en/announce/index.rst +++ b/doc/en/announce/index.rst @@ -6,6 +6,7 @@ Release announcements :maxdepth: 2 + release-5.4.2 release-5.4.1 release-5.4.0 release-5.3.5 diff --git a/doc/en/announce/release-5.4.2.rst b/doc/en/announce/release-5.4.2.rst new file mode 100644 index 00000000000..233faf127b5 --- /dev/null +++ b/doc/en/announce/release-5.4.2.rst @@ -0,0 +1,22 @@ +pytest-5.4.2 +======================================= + +pytest 5.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/latest/changelog.html. + +Thanks to all who contributed to this release, among them: + +* Anthony Sottile +* Bruno Oliveira +* Daniel Hahler +* Ran Benita +* Ronny Pfannschmidt + + +Happy testing, +The pytest Development Team diff --git a/doc/en/changelog.rst b/doc/en/changelog.rst index ac3b4ad85ef..ed4a8ded881 100644 --- a/doc/en/changelog.rst +++ b/doc/en/changelog.rst @@ -28,6 +28,42 @@ with advance notice in the **Deprecations** section of releases. .. towncrier release notes start +pytest 5.4.2 (2020-05-08) +========================= + +Bug Fixes +--------- + +- `#6871 `_: Fix crash with captured output when using the :fixture:`capsysbinary fixture `. + + +- `#6924 `_: Ensure a ``unittest.IsolatedAsyncioTestCase`` is actually awaited. + + +- `#6925 `_: Fix TerminalRepr instances to be hashable again. + + +- `#6947 `_: Fix regression where functions registered with ``TestCase.addCleanup`` were not being called on test failures. + + +- `#6951 `_: Allow users to still set the deprecated ``TerminalReporter.writer`` attribute. + + +- `#6992 `_: Revert "tmpdir: clean up indirection via config for factories" #6767 as it breaks pytest-xdist. + + +- `#7110 `_: Fixed regression: ``asyncbase.TestCase`` tests are executed correctly again. + + +- `#7143 `_: Fix ``File.from_constructor`` so it forwards extra keyword arguments to the constructor. + + +- `#7145 `_: Classes with broken ``__getattribute__`` methods are displayed correctly during failures. + + +- `#7180 `_: Fix ``_is_setup_py`` for files encoded differently than locale. + + pytest 5.4.1 (2020-03-13) ========================= diff --git a/doc/en/writing_plugins.rst b/doc/en/writing_plugins.rst index 7040f25630b..75506513b84 100644 --- a/doc/en/writing_plugins.rst +++ b/doc/en/writing_plugins.rst @@ -443,9 +443,9 @@ additionally it is possible to copy examples for an example folder before runnin testdir.copy_example("test_example.py") test_example.py::test_plugin - $PYTHON_PREFIX/lib/python3.8/site-packages/_pytest/terminal.py:287: PytestDeprecationWarning: TerminalReporter.writer attribute is deprecated, use TerminalReporter._tw instead at your own risk. + $PYTHON_PREFIX/lib/python3.8/site-packages/_pytest/compat.py:333: PytestDeprecationWarning: The TerminalReporter.writer attribute is deprecated, use TerminalReporter._tw instead at your own risk. See https://docs.pytest.org/en/latest/deprecations.html#terminalreporter-writer for more information. - warnings.warn( + return getattr(object, name, default) -- Docs: https://docs.pytest.org/en/latest/warnings.html ====================== 2 passed, 2 warnings in 0.12s =======================