Skip to content

Commit f838c7b

Browse files
committed
Preparing release version 5.4.2
1 parent 25b53c4 commit f838c7b

14 files changed

+61
-12
lines changed

changelog/6871.bugfix.rst

-1
This file was deleted.

changelog/6924.bugfix.rst

-1
This file was deleted.

changelog/6925.bugfix.rst

-1
This file was deleted.

changelog/6947.bugfix.rst

-1
This file was deleted.

changelog/6951.bugfix.rst

-1
This file was deleted.

changelog/6992.bugfix.rst

-1
This file was deleted.

changelog/7110.bugfix.rst

-1
This file was deleted.

changelog/7143.bugfix.rst

-1
This file was deleted.

changelog/7145.bugfix.rst

-1
This file was deleted.

changelog/7180.bugfix.rst

-1
This file was deleted.

doc/en/announce/index.rst

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Release announcements
66
:maxdepth: 2
77

88

9+
release-5.4.2
910
release-5.4.1
1011
release-5.4.0
1112
release-5.3.5

doc/en/announce/release-5.4.2.rst

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
pytest-5.4.2
2+
=======================================
3+
4+
pytest 5.4.2 has just been released to PyPI.
5+
6+
This is a bug-fix release, being a drop-in replacement. To upgrade::
7+
8+
pip install --upgrade pytest
9+
10+
The full changelog is available at https://docs.pytest.org/en/latest/changelog.html.
11+
12+
Thanks to all who contributed to this release, among them:
13+
14+
* Anthony Sottile
15+
* Bruno Oliveira
16+
* Daniel Hahler
17+
* Ran Benita
18+
* Ronny Pfannschmidt
19+
20+
21+
Happy testing,
22+
The pytest Development Team

doc/en/changelog.rst

+36
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,42 @@ with advance notice in the **Deprecations** section of releases.
2828

2929
.. towncrier release notes start
3030
31+
pytest 5.4.2 (2020-05-08)
32+
=========================
33+
34+
Bug Fixes
35+
---------
36+
37+
- `#6871 <https://github.com/pytest-dev/pytest/issues/6871>`_: Fix crash with captured output when using the :fixture:`capsysbinary fixture <capsysbinary>`.
38+
39+
40+
- `#6924 <https://github.com/pytest-dev/pytest/issues/6924>`_: Ensure a ``unittest.IsolatedAsyncioTestCase`` is actually awaited.
41+
42+
43+
- `#6925 <https://github.com/pytest-dev/pytest/issues/6925>`_: Fix TerminalRepr instances to be hashable again.
44+
45+
46+
- `#6947 <https://github.com/pytest-dev/pytest/issues/6947>`_: Fix regression where functions registered with ``TestCase.addCleanup`` were not being called on test failures.
47+
48+
49+
- `#6951 <https://github.com/pytest-dev/pytest/issues/6951>`_: Allow users to still set the deprecated ``TerminalReporter.writer`` attribute.
50+
51+
52+
- `#6992 <https://github.com/pytest-dev/pytest/issues/6992>`_: Revert "tmpdir: clean up indirection via config for factories" #6767 as it breaks pytest-xdist.
53+
54+
55+
- `#7110 <https://github.com/pytest-dev/pytest/issues/7110>`_: Fixed regression: ``asyncbase.TestCase`` tests are executed correctly again.
56+
57+
58+
- `#7143 <https://github.com/pytest-dev/pytest/issues/7143>`_: Fix ``File.from_constructor`` so it forwards extra keyword arguments to the constructor.
59+
60+
61+
- `#7145 <https://github.com/pytest-dev/pytest/issues/7145>`_: Classes with broken ``__getattribute__`` methods are displayed correctly during failures.
62+
63+
64+
- `#7180 <https://github.com/pytest-dev/pytest/issues/7180>`_: Fix ``_is_setup_py`` for files encoded differently than locale.
65+
66+
3167
pytest 5.4.1 (2020-03-13)
3268
=========================
3369

doc/en/writing_plugins.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -443,9 +443,9 @@ additionally it is possible to copy examples for an example folder before runnin
443443
testdir.copy_example("test_example.py")
444444
445445
test_example.py::test_plugin
446-
$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.
446+
$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.
447447
See https://docs.pytest.org/en/latest/deprecations.html#terminalreporter-writer for more information.
448-
warnings.warn(
448+
return getattr(object, name, default)
449449
450450
-- Docs: https://docs.pytest.org/en/latest/warnings.html
451451
====================== 2 passed, 2 warnings in 0.12s =======================

0 commit comments

Comments
 (0)