From 05008f6b557ad35b71efd9e9ebca96c07402d793 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Mon, 25 Nov 2019 12:01:31 -0500 Subject: [PATCH] Preparing release version 5.3.1 --- CHANGELOG.rst | 36 +++++++++++++++++++++++++++++++ changelog/5914.bugfix.rst | 1 - changelog/6082.bugfix.rst | 1 - changelog/6231.improvement.rst | 1 - changelog/6254.bugfix.rst | 1 - changelog/6255.bugfix.rst | 3 --- changelog/6257.improvement.rst | 1 - doc/en/announce/index.rst | 1 + doc/en/announce/release-5.3.1.rst | 26 ++++++++++++++++++++++ doc/en/example/parametrize.rst | 4 ++-- doc/en/example/reportingdemo.rst | 4 ++-- doc/en/example/simple.rst | 2 +- doc/en/getting-started.rst | 2 +- 13 files changed, 69 insertions(+), 14 deletions(-) delete mode 100644 changelog/5914.bugfix.rst delete mode 100644 changelog/6082.bugfix.rst delete mode 100644 changelog/6231.improvement.rst delete mode 100644 changelog/6254.bugfix.rst delete mode 100644 changelog/6255.bugfix.rst delete mode 100644 changelog/6257.improvement.rst create mode 100644 doc/en/announce/release-5.3.1.rst diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 30574f574..8815f05bb 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -18,6 +18,42 @@ with advance notice in the **Deprecations** section of releases. .. towncrier release notes start +pytest 5.3.1 (2019-11-25) +========================= + +No significant changes. + + +pytest 5.3.1 (2019-11-25) +========================= + +Improvements +------------ + +- `#6231 `_: Improve check for misspelling of ``pytest.mark.parametrize``. + + +- `#6257 `_: Handle `exit.Exception` raised in `notify_exception` (via `pytest_internalerror`), e.g. when quitting pdb from post mortem. + + + +Bug Fixes +--------- + +- `#5914 `_: pytester: fix ``no_fnmatch_line`` when used after positive matching. + + +- `#6082 `_: Fix line detection for doctest samples inside ``property`` docstrings, as a workaround to `bpo-17446 `__. + + +- `#6254 `_: Fix compatibility with pytest-parallel (regression in pytest 5.3.0). + + +- `#6255 `_: Clear the ``sys.last_traceback``, ``sys.last_type`` and ``sys.last_value`` + attributes by deleting them instead of setting them to ``None``. This better + matches the behaviour of the Python standard library. + + pytest 5.3.0 (2019-11-19) ========================= diff --git a/changelog/5914.bugfix.rst b/changelog/5914.bugfix.rst deleted file mode 100644 index b62b0b3c0..000000000 --- a/changelog/5914.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -pytester: fix ``no_fnmatch_line`` when used after positive matching. diff --git a/changelog/6082.bugfix.rst b/changelog/6082.bugfix.rst deleted file mode 100644 index 24d389257..000000000 --- a/changelog/6082.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix line detection for doctest samples inside ``property`` docstrings, as a workaround to `bpo-17446 `__. diff --git a/changelog/6231.improvement.rst b/changelog/6231.improvement.rst deleted file mode 100644 index 1554a229b..000000000 --- a/changelog/6231.improvement.rst +++ /dev/null @@ -1 +0,0 @@ -Improve check for misspelling of ``pytest.mark.parametrize``. diff --git a/changelog/6254.bugfix.rst b/changelog/6254.bugfix.rst deleted file mode 100644 index a278a85ed..000000000 --- a/changelog/6254.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix compatibility with pytest-parallel (regression in pytest 5.3.0). diff --git a/changelog/6255.bugfix.rst b/changelog/6255.bugfix.rst deleted file mode 100644 index 831187feb..000000000 --- a/changelog/6255.bugfix.rst +++ /dev/null @@ -1,3 +0,0 @@ -Clear the ``sys.last_traceback``, ``sys.last_type`` and ``sys.last_value`` -attributes by deleting them instead of setting them to ``None``. This better -matches the behaviour of the Python standard library. diff --git a/changelog/6257.improvement.rst b/changelog/6257.improvement.rst deleted file mode 100644 index a21558286..000000000 --- a/changelog/6257.improvement.rst +++ /dev/null @@ -1 +0,0 @@ -Handle `exit.Exception` raised in `notify_exception` (via `pytest_internalerror`), e.g. when quitting pdb from post mortem. diff --git a/doc/en/announce/index.rst b/doc/en/announce/index.rst index 6e6914f2d..7d8c4c5ac 100644 --- a/doc/en/announce/index.rst +++ b/doc/en/announce/index.rst @@ -6,6 +6,7 @@ Release announcements :maxdepth: 2 + release-5.3.1 release-5.3.0 release-5.2.4 release-5.2.3 diff --git a/doc/en/announce/release-5.3.1.rst b/doc/en/announce/release-5.3.1.rst new file mode 100644 index 000000000..acf13bf6d --- /dev/null +++ b/doc/en/announce/release-5.3.1.rst @@ -0,0 +1,26 @@ +pytest-5.3.1 +======================================= + +pytest 5.3.1 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 +* Felix Yan +* Florian Bruhin +* Mark Dickinson +* Nikolay Kondratyev +* Steffen Schroeder +* Zac Hatfield-Dodds + + +Happy testing, +The pytest Development Team diff --git a/doc/en/example/parametrize.rst b/doc/en/example/parametrize.rst index c420761a4..7230f2b00 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 1570850fc..c1e13e3b1 100644 --- a/doc/en/example/simple.rst +++ b/doc/en/example/simple.rst @@ -442,7 +442,7 @@ 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.21s call test_some_are_slow.py::test_funcslow1 0.11s call test_some_are_slow.py::test_funcfast ============================ 3 passed in 0.12s ============================= diff --git a/doc/en/getting-started.rst b/doc/en/getting-started.rst index 2bdd68ea3..97347f126 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.py + This is pytest version 5.x.y, imported from $PYTHON_PREFIX/lib/python3.7/site-packages/pytest.py .. _`simpletest`: