diff --git a/changelog/2780.bugfix.rst b/changelog/2780.bugfix.rst deleted file mode 100644 index d1d7e9914c1..00000000000 --- a/changelog/2780.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Captured output during teardown is shown with ``-rP``. diff --git a/changelog/5971.bugfix.rst b/changelog/5971.bugfix.rst deleted file mode 100644 index dbc79dd96c4..00000000000 --- a/changelog/5971.bugfix.rst +++ /dev/null @@ -1,2 +0,0 @@ -Fix a ``pytest-xdist`` crash when dealing with exceptions raised in subprocesses created by the -``multiprocessing`` module. diff --git a/changelog/6350.trivial.rst b/changelog/6350.trivial.rst deleted file mode 100644 index c43fb42679c..00000000000 --- a/changelog/6350.trivial.rst +++ /dev/null @@ -1 +0,0 @@ -Optimized automatic renaming of test parameter IDs. diff --git a/changelog/6436.bugfix.rst b/changelog/6436.bugfix.rst deleted file mode 100644 index 9afa252d57d..00000000000 --- a/changelog/6436.bugfix.rst +++ /dev/null @@ -1,3 +0,0 @@ -:class:`FixtureDef <_pytest.fixtures.FixtureDef>` objects now properly register their finalizers with autouse and -parameterized fixtures that execute before them in the fixture stack so they are torn -down at the right times, and in the right order. diff --git a/changelog/6532.bugfix.rst b/changelog/6532.bugfix.rst deleted file mode 100644 index b5c7cf7718c..00000000000 --- a/changelog/6532.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix parsing of outcomes containing multiple errors with ``testdir`` results (regression in 5.3.0). diff --git a/doc/en/announce/index.rst b/doc/en/announce/index.rst index 7bcf899d91c..85277fb5adc 100644 --- a/doc/en/announce/index.rst +++ b/doc/en/announce/index.rst @@ -6,6 +6,7 @@ Release announcements :maxdepth: 2 + release-5.3.3 release-5.3.2 release-5.3.1 release-5.3.0 diff --git a/doc/en/announce/release-5.3.3.rst b/doc/en/announce/release-5.3.3.rst new file mode 100644 index 00000000000..39820f3bcd0 --- /dev/null +++ b/doc/en/announce/release-5.3.3.rst @@ -0,0 +1,30 @@ +pytest-5.3.3 +======================================= + +pytest 5.3.3 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: + +* Adam Johnson +* Alexandre Mulatinho +* Anthony Sottile +* Bruno Oliveira +* Chris NeJame +* Daniel Hahler +* Hugo van Kemenade +* Marcelo Duarte Trevisani +* PaulC +* Ran Benita +* Ryan Barner +* Seth Junot +* marc + + +Happy testing, +The pytest Development Team diff --git a/doc/en/changelog.rst b/doc/en/changelog.rst index 4703c7e6708..48ea96882c7 100644 --- a/doc/en/changelog.rst +++ b/doc/en/changelog.rst @@ -28,6 +28,34 @@ with advance notice in the **Deprecations** section of releases. .. towncrier release notes start +pytest 5.3.3 (2020-01-16) +========================= + +Bug Fixes +--------- + +- `#2780 `_: Captured output during teardown is shown with ``-rP``. + + +- `#5971 `_: Fix a ``pytest-xdist`` crash when dealing with exceptions raised in subprocesses created by the + ``multiprocessing`` module. + + +- `#6436 `_: :class:`FixtureDef <_pytest.fixtures.FixtureDef>` objects now properly register their finalizers with autouse and + parameterized fixtures that execute before them in the fixture stack so they are torn + down at the right times, and in the right order. + + +- `#6532 `_: Fix parsing of outcomes containing multiple errors with ``testdir`` results (regression in 5.3.0). + + + +Trivial/Internal Changes +------------------------ + +- `#6350 `_: Optimized automatic renaming of test parameter IDs. + + pytest 5.3.2 (2019-12-13) ========================= @@ -4842,7 +4870,7 @@ time or change existing behaviors in order to make them less surprising/more use * Updated docstrings with a more uniform style. * Add stderr write for ``pytest.exit(msg)`` during startup. Previously the message was never shown. - Thanks `@BeyondEvil`_ for reporting `#1210`_. Thanks to `@jgsonesen`_ and + Thanks `@BeyondEvil`_ for reporting `#1210`_. Thanks to @jgsonesen and `@tomviner`_ for the PR. * No longer display the incorrect test deselection reason (`#1372`_). @@ -4974,7 +5002,6 @@ time or change existing behaviors in order to make them less surprising/more use .. _@gprasad84: https://github.com/gprasad84 .. _@graingert: https://github.com/graingert .. _@hartym: https://github.com/hartym -.. _@jgsonesen: https://github.com/jgsonesen .. _@kalekundert: https://github.com/kalekundert .. _@kvas-it: https://github.com/kvas-it .. _@marscher: https://github.com/marscher diff --git a/doc/en/example/parametrize.rst b/doc/en/example/parametrize.rst index 15593b28a02..8b7725152f0 100644 --- a/doc/en/example/parametrize.rst +++ b/doc/en/example/parametrize.rst @@ -475,10 +475,10 @@ Running it results in some skips if we don't have all the python interpreters in .. code-block:: pytest . $ pytest -rs -q multipython.py - ssssssssssss...ssssssssssss [100%] + ssssssssssssssssssssssss... [100%] ========================= short test summary info ========================== SKIPPED [12] $REGENDOC_TMPDIR/CWD/multipython.py:29: 'python3.5' not found - SKIPPED [12] $REGENDOC_TMPDIR/CWD/multipython.py:29: 'python3.7' not found + SKIPPED [12] $REGENDOC_TMPDIR/CWD/multipython.py:29: 'python3.6' not found 3 passed, 24 skipped in 0.12s Indirect parametrization of optional implementations/imports diff --git a/doc/en/example/reportingdemo.rst b/doc/en/example/reportingdemo.rst index 1c06782f631..eb978c5eaba 100644 --- a/doc/en/example/reportingdemo.rst +++ b/doc/en/example/reportingdemo.rst @@ -436,7 +436,7 @@ Here is a nice run of several failures and how ``pytest`` presents things: items = [1, 2, 3] print("items is {!r}".format(items)) > a, b = items.pop() - E TypeError: 'int' object is not iterable + E TypeError: cannot unpack non-iterable int object failure_demo.py:181: TypeError --------------------------- Captured stdout call --------------------------- @@ -516,7 +516,7 @@ Here is a nice run of several failures and how ``pytest`` presents things: def test_z2_type_error(self): items = 3 > a, b = items - E TypeError: 'int' object is not iterable + E TypeError: cannot unpack non-iterable int object failure_demo.py:222: TypeError ______________________ TestMoreErrors.test_startswith ______________________ diff --git a/doc/en/example/simple.rst b/doc/en/example/simple.rst index 05ccbc9b23e..c1e13e3b1bd 100644 --- a/doc/en/example/simple.rst +++ b/doc/en/example/simple.rst @@ -442,8 +442,8 @@ Now we can profile which test functions execute the slowest: ========================= slowest 3 test durations ========================= 0.30s call test_some_are_slow.py::test_funcslow2 - 0.20s call test_some_are_slow.py::test_funcslow1 - 0.10s call test_some_are_slow.py::test_funcfast + 0.21s call test_some_are_slow.py::test_funcslow1 + 0.11s call test_some_are_slow.py::test_funcfast ============================ 3 passed in 0.12s ============================= incremental testing - test steps diff --git a/doc/en/getting-started.rst b/doc/en/getting-started.rst index 59197d0d7ee..25df2f15381 100644 --- a/doc/en/getting-started.rst +++ b/doc/en/getting-started.rst @@ -28,7 +28,7 @@ Install ``pytest`` .. code-block:: bash $ pytest --version - This is pytest version 5.x.y, imported from $PYTHON_PREFIX/lib/python3.6/site-packages/pytest/__init__.py + This is pytest version 5.x.y, imported from $PYTHON_PREFIX/lib/python3.7/site-packages/pytest/__init__.py .. _`simpletest`: