From b27ba977219260528f4e47c9614c129d680dee90 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Thu, 24 Oct 2019 19:24:04 -0400 Subject: [PATCH] Preparing release version 5.2.2 --- CHANGELOG.rst | 20 +++++++++++ changelog/5206.bugfix.rst | 1 - changelog/5906.bugfix.rst | 1 - changelog/5946.bugfix.rst | 1 - changelog/6044.bugfix.rst | 3 -- doc/en/announce/index.rst | 1 + doc/en/announce/release-5.2.2.rst | 29 ++++++++++++++++ doc/en/builtin.rst | 1 + doc/en/cache.rst | 55 ++++++++++++++++++++++++++++++- 9 files changed, 105 insertions(+), 7 deletions(-) delete mode 100644 changelog/5206.bugfix.rst delete mode 100644 changelog/5906.bugfix.rst delete mode 100644 changelog/5946.bugfix.rst delete mode 100644 changelog/6044.bugfix.rst create mode 100644 doc/en/announce/release-5.2.2.rst diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 2d27b5e65..0d6b8188f 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -18,6 +18,26 @@ with advance notice in the **Deprecations** section of releases. .. towncrier release notes start +pytest 5.2.2 (2019-10-24) +========================= + +Bug Fixes +--------- + +- `#5206 `_: Fix ``--nf`` to not forget about known nodeids with partial test selection. + + +- `#5906 `_: Fix crash with ``KeyboardInterrupt`` during ``--setup-show``. + + +- `#5946 `_: Fixed issue when parametrizing fixtures with numpy arrays (and possibly other sequence-like types). + + +- `#6044 `_: Properly ignore ``FileNotFoundError`` exceptions when trying to remove old temporary directories, + for instance when multiple processes try to remove the same directory (common with ``pytest-xdist`` + for example). + + pytest 5.2.1 (2019-10-06) ========================= diff --git a/changelog/5206.bugfix.rst b/changelog/5206.bugfix.rst deleted file mode 100644 index 94df9c6b4..000000000 --- a/changelog/5206.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix ``--nf`` to not forget about known nodeids with partial test selection. diff --git a/changelog/5906.bugfix.rst b/changelog/5906.bugfix.rst deleted file mode 100644 index f5ded6cd2..000000000 --- a/changelog/5906.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix crash with ``KeyboardInterrupt`` during ``--setup-show``. diff --git a/changelog/5946.bugfix.rst b/changelog/5946.bugfix.rst deleted file mode 100644 index 62f012ccd..000000000 --- a/changelog/5946.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed issue when parametrizing fixtures with numpy arrays (and possibly other sequence-like types). diff --git a/changelog/6044.bugfix.rst b/changelog/6044.bugfix.rst deleted file mode 100644 index 36d38e9c8..000000000 --- a/changelog/6044.bugfix.rst +++ /dev/null @@ -1,3 +0,0 @@ -Properly ignore ``FileNotFoundError`` exceptions when trying to remove old temporary directories, -for instance when multiple processes try to remove the same directory (common with ``pytest-xdist`` -for example). diff --git a/doc/en/announce/index.rst b/doc/en/announce/index.rst index d5e684198..f7a634b31 100644 --- a/doc/en/announce/index.rst +++ b/doc/en/announce/index.rst @@ -6,6 +6,7 @@ Release announcements :maxdepth: 2 + release-5.2.2 release-5.2.1 release-5.2.0 release-5.1.3 diff --git a/doc/en/announce/release-5.2.2.rst b/doc/en/announce/release-5.2.2.rst new file mode 100644 index 000000000..8a2ced9eb --- /dev/null +++ b/doc/en/announce/release-5.2.2.rst @@ -0,0 +1,29 @@ +pytest-5.2.2 +======================================= + +pytest 5.2.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: + +* Albert Tugushev +* Andrzej Klajnert +* Anthony Sottile +* Bruno Oliveira +* Daniel Hahler +* Florian Bruhin +* Nattaphoom Chaipreecha +* Oliver Bestwalter +* Philipp Loose +* Ran Benita +* Victor Maryama +* Yoav Caspi + + +Happy testing, +The pytest Development Team diff --git a/doc/en/builtin.rst b/doc/en/builtin.rst index 7f41b87c7..7b8fd4a5a 100644 --- a/doc/en/builtin.rst +++ b/doc/en/builtin.rst @@ -104,6 +104,7 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a Captured logs are available through the following properties/methods:: + * caplog.messages -> list of format-interpolated log messages * caplog.text -> string containing formatted log output * caplog.records -> list of logging.LogRecord instances * caplog.record_tuples -> list of (logger_name, level, message) tuples diff --git a/doc/en/cache.rst b/doc/en/cache.rst index 974c480a5..6c808fa53 100644 --- a/doc/en/cache.rst +++ b/doc/en/cache.rst @@ -277,7 +277,60 @@ You can always peek at the content of the cache using the 'test_caching.py::test_function': True, 'test_foocompare.py::test_compare': True} cache/nodeids contains: - ['test_caching.py::test_function'] + ['test_assert1.py::test_function', + 'test_assert2.py::test_set_comparison', + 'test_foocompare.py::test_compare', + 'test_50.py::test_num[0]', + 'test_50.py::test_num[1]', + 'test_50.py::test_num[2]', + 'test_50.py::test_num[3]', + 'test_50.py::test_num[4]', + 'test_50.py::test_num[5]', + 'test_50.py::test_num[6]', + 'test_50.py::test_num[7]', + 'test_50.py::test_num[8]', + 'test_50.py::test_num[9]', + 'test_50.py::test_num[10]', + 'test_50.py::test_num[11]', + 'test_50.py::test_num[12]', + 'test_50.py::test_num[13]', + 'test_50.py::test_num[14]', + 'test_50.py::test_num[15]', + 'test_50.py::test_num[16]', + 'test_50.py::test_num[17]', + 'test_50.py::test_num[18]', + 'test_50.py::test_num[19]', + 'test_50.py::test_num[20]', + 'test_50.py::test_num[21]', + 'test_50.py::test_num[22]', + 'test_50.py::test_num[23]', + 'test_50.py::test_num[24]', + 'test_50.py::test_num[25]', + 'test_50.py::test_num[26]', + 'test_50.py::test_num[27]', + 'test_50.py::test_num[28]', + 'test_50.py::test_num[29]', + 'test_50.py::test_num[30]', + 'test_50.py::test_num[31]', + 'test_50.py::test_num[32]', + 'test_50.py::test_num[33]', + 'test_50.py::test_num[34]', + 'test_50.py::test_num[35]', + 'test_50.py::test_num[36]', + 'test_50.py::test_num[37]', + 'test_50.py::test_num[38]', + 'test_50.py::test_num[39]', + 'test_50.py::test_num[40]', + 'test_50.py::test_num[41]', + 'test_50.py::test_num[42]', + 'test_50.py::test_num[43]', + 'test_50.py::test_num[44]', + 'test_50.py::test_num[45]', + 'test_50.py::test_num[46]', + 'test_50.py::test_num[47]', + 'test_50.py::test_num[48]', + 'test_50.py::test_num[49]', + 'test_caching.py::test_function'] cache/stepwise contains: [] example/value contains: