From 5e8c47faad91ccf49897a290efd62bcac1971ff7 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Thu, 14 Nov 2019 11:12:06 -0300 Subject: [PATCH] Preparing release version 5.2.3 --- CHANGELOG.rst | 16 ++++++++++++++++ changelog/5830.bugfix.rst | 1 - changelog/6099.bugfix.rst | 1 - changelog/6183.bugfix.rst | 2 -- doc/en/announce/index.rst | 1 + doc/en/announce/release-5.2.3.rst | 28 ++++++++++++++++++++++++++++ doc/en/example/parametrize.rst | 4 ++-- doc/en/example/reportingdemo.rst | 4 ++-- doc/en/getting-started.rst | 2 +- 9 files changed, 50 insertions(+), 9 deletions(-) delete mode 100644 changelog/5830.bugfix.rst delete mode 100644 changelog/6099.bugfix.rst delete mode 100644 changelog/6183.bugfix.rst create mode 100644 doc/en/announce/release-5.2.3.rst diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 375b5dabf..402a35d73 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -18,6 +18,22 @@ with advance notice in the **Deprecations** section of releases. .. towncrier release notes start +pytest 5.2.3 (2019-11-14) +========================= + +Bug Fixes +--------- + +- `#5830 `_: Fix fail skipping the first test in package marked as ``skip`` + + +- `#6099 `_: Fix ``--trace`` when used with parametrized functions. + + +- `#6183 `_: Using ``request`` as a parameter name in ``@pytest.mark.parametrize`` now produces a more + user-friendly error. + + pytest 5.2.2 (2019-10-24) ========================= diff --git a/changelog/5830.bugfix.rst b/changelog/5830.bugfix.rst deleted file mode 100644 index 355790fd4..000000000 --- a/changelog/5830.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix fail skipping the first test in package marked as ``skip`` diff --git a/changelog/6099.bugfix.rst b/changelog/6099.bugfix.rst deleted file mode 100644 index 77f33cde1..000000000 --- a/changelog/6099.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix ``--trace`` when used with parametrized functions. diff --git a/changelog/6183.bugfix.rst b/changelog/6183.bugfix.rst deleted file mode 100644 index 5c4d66e24..000000000 --- a/changelog/6183.bugfix.rst +++ /dev/null @@ -1,2 +0,0 @@ -Using ``request`` as a parameter name in ``@pytest.mark.parametrize`` now produces a more -user-friendly error. diff --git a/doc/en/announce/index.rst b/doc/en/announce/index.rst index f7a634b31..05530dd2e 100644 --- a/doc/en/announce/index.rst +++ b/doc/en/announce/index.rst @@ -6,6 +6,7 @@ Release announcements :maxdepth: 2 + release-5.2.3 release-5.2.2 release-5.2.1 release-5.2.0 diff --git a/doc/en/announce/release-5.2.3.rst b/doc/en/announce/release-5.2.3.rst new file mode 100644 index 000000000..bfb62a1b8 --- /dev/null +++ b/doc/en/announce/release-5.2.3.rst @@ -0,0 +1,28 @@ +pytest-5.2.3 +======================================= + +pytest 5.2.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: + +* Anthony Sottile +* Brett Cannon +* Bruno Oliveira +* Daniel Hahler +* Daniil Galiev +* David Szotten +* Florian Bruhin +* Patrick Harmon +* Ran Benita +* Zac Hatfield-Dodds +* Zak Hassan + + +Happy testing, +The pytest Development Team diff --git a/doc/en/example/parametrize.rst b/doc/en/example/parametrize.rst index 1220cfb4d..48ab95fda 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:30: 'python3.5' not found - SKIPPED [12] $REGENDOC_TMPDIR/CWD/multipython.py:30: 'python3.6' not found + SKIPPED [12] $REGENDOC_TMPDIR/CWD/multipython.py:30: 'python3.7' 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 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/getting-started.rst b/doc/en/getting-started.rst index 97347f126..2bdd68ea3 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.py .. _`simpletest`: