From 8942a05cfec4b97d7aa94e55d08e41a08397e78e Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Mon, 9 Dec 2019 15:57:19 -0300 Subject: [PATCH 1/3] Change 4639 from feature to improvement An improvement seems more adequate here. --- changelog/{4639.feature.rst => 4639.improvement.rst} | 1 + 1 file changed, 1 insertion(+) rename changelog/{4639.feature.rst => 4639.improvement.rst} (99%) diff --git a/changelog/4639.feature.rst b/changelog/4639.improvement.rst similarity index 99% rename from changelog/4639.feature.rst rename to changelog/4639.improvement.rst index f296f1649..e18b3b619 100644 --- a/changelog/4639.feature.rst +++ b/changelog/4639.improvement.rst @@ -1,3 +1,4 @@ Revert "A warning is now issued when assertions are made for ``None``". + The warning proved to be less useful than initially expected and had quite a few false positive cases. From 10fcac7f908b792264c3e6a402aa1aa01345acc4 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Fri, 13 Dec 2019 08:51:15 -0300 Subject: [PATCH 2/3] Preparing release version 5.3.2 --- changelog/4639.improvement.rst | 4 ---- changelog/5430.bugfix.rst | 1 - changelog/6290.bugfix.rst | 1 - changelog/6301.bugfix.rst | 1 - doc/en/announce/index.rst | 1 + doc/en/announce/release-5.3.2.rst | 27 +++++++++++++++++++++++++++ doc/en/changelog.rst | 29 ++++++++++++++++++++++++----- doc/en/example/parametrize.rst | 8 ++++---- doc/en/example/reportingdemo.rst | 4 ++-- doc/en/example/simple.rst | 4 ++-- doc/en/getting-started.rst | 2 +- 11 files changed, 61 insertions(+), 21 deletions(-) delete mode 100644 changelog/4639.improvement.rst delete mode 100644 changelog/5430.bugfix.rst delete mode 100644 changelog/6290.bugfix.rst delete mode 100644 changelog/6301.bugfix.rst create mode 100644 doc/en/announce/release-5.3.2.rst diff --git a/changelog/4639.improvement.rst b/changelog/4639.improvement.rst deleted file mode 100644 index e18b3b619..000000000 --- a/changelog/4639.improvement.rst +++ /dev/null @@ -1,4 +0,0 @@ -Revert "A warning is now issued when assertions are made for ``None``". - -The warning proved to be less useful than initially expected and had quite a -few false positive cases. diff --git a/changelog/5430.bugfix.rst b/changelog/5430.bugfix.rst deleted file mode 100644 index 734685063..000000000 --- a/changelog/5430.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -junitxml: Logs for failed test are now passed to junit report in case the test fails during call phase. diff --git a/changelog/6290.bugfix.rst b/changelog/6290.bugfix.rst deleted file mode 100644 index f6f1560d4..000000000 --- a/changelog/6290.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -The supporting files in the ``.pytest_cache`` directory are kept with ``--cache-clear``, which only clears cached values now. diff --git a/changelog/6301.bugfix.rst b/changelog/6301.bugfix.rst deleted file mode 100644 index f13c83343..000000000 --- a/changelog/6301.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix assertion rewriting for egg-based distributions and ``editable`` installs (``pip install --editable``). diff --git a/doc/en/announce/index.rst b/doc/en/announce/index.rst index 7d8c4c5ac..e44ab212e 100644 --- a/doc/en/announce/index.rst +++ b/doc/en/announce/index.rst @@ -6,6 +6,7 @@ Release announcements :maxdepth: 2 + release-5.3.2 release-5.3.1 release-5.3.0 release-5.2.4 diff --git a/doc/en/announce/release-5.3.2.rst b/doc/en/announce/release-5.3.2.rst new file mode 100644 index 000000000..a1b37a18a --- /dev/null +++ b/doc/en/announce/release-5.3.2.rst @@ -0,0 +1,27 @@ +pytest-5.3.2 +======================================= + +pytest 5.3.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 +* Claudio Madotto +* Daniel Hahler +* Jared Vasquez +* Michael Rose +* Ran Benita +* Ronny Pfannschmidt +* Zac Hatfield-Dodds +* zupermanzupereroe + + +Happy testing, +The pytest Development Team diff --git a/doc/en/changelog.rst b/doc/en/changelog.rst index 972ebf177..46fa240e0 100644 --- a/doc/en/changelog.rst +++ b/doc/en/changelog.rst @@ -24,13 +24,32 @@ with advance notice in the **Deprecations** section of releases. .. include:: _changelog_towncrier_draft.rst - - - - - .. towncrier release notes start +pytest 5.3.2 (2019-12-13) +========================= + +Improvements +------------ + +- `#4639 `_: Revert "A warning is now issued when assertions are made for ``None``". + + The warning proved to be less useful than initially expected and had quite a + few false positive cases. + + + +Bug Fixes +--------- + +- `#5430 `_: junitxml: Logs for failed test are now passed to junit report in case the test fails during call phase. + + +- `#6290 `_: The supporting files in the ``.pytest_cache`` directory are kept with ``--cache-clear``, which only clears cached values now. + + +- `#6301 `_: Fix assertion rewriting for egg-based distributions and ``editable`` installs (``pip install --editable``). + pytest 5.3.1 (2019-11-25) ========================= diff --git a/doc/en/example/parametrize.rst b/doc/en/example/parametrize.rst index 7230f2b00..15593b28a 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 - ssssssssssssssssssssssss... [100%] + ssssssssssss...ssssssssssss [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.6' not found + SKIPPED [12] $REGENDOC_TMPDIR/CWD/multipython.py:29: 'python3.7' not found 3 passed, 24 skipped in 0.12s Indirect parametrization of optional implementations/imports @@ -604,13 +604,13 @@ Then run ``pytest`` with verbose mode and with only the ``basic`` marker: platform linux -- Python 3.x.y, pytest-5.x.y, py-1.x.y, pluggy-0.x.y -- $PYTHON_PREFIX/bin/python cachedir: $PYTHON_PREFIX/.pytest_cache rootdir: $REGENDOC_TMPDIR - collecting ... collected 18 items / 15 deselected / 3 selected + collecting ... collected 17 items / 14 deselected / 3 selected test_pytest_param_example.py::test_eval[1+7-8] PASSED [ 33%] test_pytest_param_example.py::test_eval[basic_2+4] PASSED [ 66%] test_pytest_param_example.py::test_eval[basic_6*9] XFAIL [100%] - =============== 2 passed, 15 deselected, 1 xfailed in 0.12s ================ + =============== 2 passed, 14 deselected, 1 xfailed in 0.12s ================ As the result: diff --git a/doc/en/example/reportingdemo.rst b/doc/en/example/reportingdemo.rst index eb978c5ea..1c06782f6 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: cannot unpack non-iterable int object + E TypeError: 'int' object is not iterable 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: cannot unpack non-iterable int object + E TypeError: 'int' object is not iterable failure_demo.py:222: TypeError ______________________ TestMoreErrors.test_startswith ______________________ diff --git a/doc/en/example/simple.rst b/doc/en/example/simple.rst index c1e13e3b1..05ccbc9b2 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.21s call test_some_are_slow.py::test_funcslow1 - 0.11s call test_some_are_slow.py::test_funcfast + 0.20s call test_some_are_slow.py::test_funcslow1 + 0.10s 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 97347f126..59197d0d7 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.7/site-packages/pytest.py + This is pytest version 5.x.y, imported from $PYTHON_PREFIX/lib/python3.6/site-packages/pytest/__init__.py .. _`simpletest`: From 7f24cc2feb87af41e95d2c0aee59fc81a44dbea8 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Sat, 14 Dec 2019 10:06:59 -0300 Subject: [PATCH 3/3] Remove duplicated user from announcement --- doc/en/announce/release-5.3.2.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/doc/en/announce/release-5.3.2.rst b/doc/en/announce/release-5.3.2.rst index a1b37a18a..dbd657da3 100644 --- a/doc/en/announce/release-5.3.2.rst +++ b/doc/en/announce/release-5.3.2.rst @@ -20,7 +20,6 @@ Thanks to all who contributed to this release, among them: * Ran Benita * Ronny Pfannschmidt * Zac Hatfield-Dodds -* zupermanzupereroe Happy testing,