From aa053349848b95a06e1f88732cb2f82b61276652 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Thu, 16 Jan 2020 18:51:33 -0500 Subject: [PATCH 1/3] Remove broken link for user @jgsonesen --- doc/en/changelog.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/en/changelog.rst b/doc/en/changelog.rst index 4703c7e67..e48217d8b 100644 --- a/doc/en/changelog.rst +++ b/doc/en/changelog.rst @@ -4842,7 +4842,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 +4974,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 From 56dc301c50c5e11c2fb661f0010b099787ddf962 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Thu, 16 Jan 2020 18:55:41 -0500 Subject: [PATCH 2/3] Preparing release version 5.3.3 --- changelog/2780.bugfix.rst | 1 - changelog/5971.bugfix.rst | 2 -- changelog/6350.trivial.rst | 1 - changelog/6436.bugfix.rst | 3 --- changelog/6532.bugfix.rst | 1 - doc/en/announce/index.rst | 1 + doc/en/announce/release-5.3.3.rst | 30 ++++++++++++++++++++++++++++++ doc/en/changelog.rst | 28 ++++++++++++++++++++++++++++ doc/en/example/parametrize.rst | 4 ++-- doc/en/example/reportingdemo.rst | 4 ++-- doc/en/example/simple.rst | 4 ++-- doc/en/getting-started.rst | 2 +- 12 files changed, 66 insertions(+), 15 deletions(-) delete mode 100644 changelog/2780.bugfix.rst delete mode 100644 changelog/5971.bugfix.rst delete mode 100644 changelog/6350.trivial.rst delete mode 100644 changelog/6436.bugfix.rst delete mode 100644 changelog/6532.bugfix.rst create mode 100644 doc/en/announce/release-5.3.3.rst diff --git a/changelog/2780.bugfix.rst b/changelog/2780.bugfix.rst deleted file mode 100644 index d1d7e9914..000000000 --- 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 dbc79dd96..000000000 --- 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 c43fb4267..000000000 --- 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 9afa252d5..000000000 --- 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 b5c7cf771..000000000 --- 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 7bcf899d9..85277fb5a 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 000000000..c42ef4643 --- /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 +* 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 e48217d8b..48ea96882 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) ========================= diff --git a/doc/en/example/parametrize.rst b/doc/en/example/parametrize.rst index 15593b28a..8b7725152 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 1c06782f6..eb978c5ea 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 05ccbc9b2..c1e13e3b1 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 59197d0d7..25df2f153 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`: From 544b4a14d5f6dbe141c34878d1a360cc6b15c87f Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Fri, 17 Jan 2020 07:18:57 -0300 Subject: [PATCH 3/3] Fix Hugo van Kemenade name in release announcement Co-Authored-By: Hugo van Kemenade --- doc/en/announce/release-5.3.3.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/en/announce/release-5.3.3.rst b/doc/en/announce/release-5.3.3.rst index c42ef4643..39820f3bc 100644 --- a/doc/en/announce/release-5.3.3.rst +++ b/doc/en/announce/release-5.3.3.rst @@ -17,7 +17,7 @@ Thanks to all who contributed to this release, among them: * Bruno Oliveira * Chris NeJame * Daniel Hahler -* Hugo +* Hugo van Kemenade * Marcelo Duarte Trevisani * PaulC * Ran Benita