From 8d56641590cf1d1bd2d4c64a2673b0ba741b96a3 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Mon, 23 Apr 2018 22:24:21 +0000 Subject: [PATCH] Preparing release version 3.5.1 --- CHANGELOG.rst | 55 +++++++++++++++++++++++++++++++ doc/en/announce/index.rst | 1 + doc/en/announce/release-3.5.1.rst | 30 +++++++++++++++++ doc/en/example/reportingdemo.rst | 2 +- doc/en/example/simple.rst | 2 +- 5 files changed, 88 insertions(+), 2 deletions(-) create mode 100644 doc/en/announce/release-3.5.1.rst diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 1896f550b..992ad9303 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -8,6 +8,61 @@ .. towncrier release notes start +Pytest 3.5.1 (2018-04-23) +========================= + +Features +-------- + +- Added a more indicative error message when parametrizing a function whose + argument takes a default value. (`#3221 + `_) + + +Bug Fixes +--------- + +- Reset ``sys.last_type``, ``sys.last_value`` and ``sys.last_traceback`` before + each test executes. Those attributes are added by pytest during the test run + to aid debugging, but were never reset so they would create a leaking + reference to the last failing test's frame which in turn could never be + reclaimed by the garbage collector. (`#2798 + `_) + +- ``pytest.raises`` now raises ``TypeError`` when receiving an unknown keyword + argument. (`#3348 `_) + +- ``pytest.raises`` now works with exception classes that look like iterables. + (`#3372 `_) + + +Improved Documentation +---------------------- + +- Fix typo in ``caplog`` fixture documentation, which incorrectly identified + certain attributes as methods. (`#3406 + `_) + + +Trivial/Internal Changes +------------------------ + +- Remove internal ``_pytest.terminal.flatten`` function in favor of + ``more_itertools.collapse``. (`#3330 + `_) + +- Import some modules from ``collections`` instead of ``collections.abc`` as + the former modules trigger ``DeprecationWarning`` in Python 3.7. (`#3339 + `_) + +- record_property is no longer experimental, removing the warnings was + forgotten. (`#3360 `_) + +- Mention in documentation and CLI help that fixtures with leading ``_`` are + printed by ``pytest --fixtures`` only if the ``-v`` option is added. (`#3398 + `_) + + Pytest 3.5.0 (2018-03-21) ========================= diff --git a/doc/en/announce/index.rst b/doc/en/announce/index.rst index b03e0f79d..f802c9e4c 100644 --- a/doc/en/announce/index.rst +++ b/doc/en/announce/index.rst @@ -6,6 +6,7 @@ Release announcements :maxdepth: 2 + release-3.5.1 release-3.5.0 release-3.4.2 release-3.4.1 diff --git a/doc/en/announce/release-3.5.1.rst b/doc/en/announce/release-3.5.1.rst new file mode 100644 index 000000000..8eadcc3ac --- /dev/null +++ b/doc/en/announce/release-3.5.1.rst @@ -0,0 +1,30 @@ +pytest-3.5.1 +======================================= + +pytest 3.5.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 http://doc.pytest.org/en/latest/changelog.html. + +Thanks to all who contributed to this release, among them: + +* Brian Maissy +* Bruno Oliveira +* Darren Burns +* David Chudzicki +* Floris Bruynooghe +* Holger Kohr +* Irmen de Jong +* Jeffrey Rackauckas +* Rachel Kogan +* Ronny Pfannschmidt +* Stefan Scherfke +* Tim Strazny +* Семён Марьясин + + +Happy testing, +The pytest Development Team diff --git a/doc/en/example/reportingdemo.rst b/doc/en/example/reportingdemo.rst index 256fe9a16..b7b6ffaf3 100644 --- a/doc/en/example/reportingdemo.rst +++ b/doc/en/example/reportingdemo.rst @@ -358,7 +358,7 @@ get on the terminal - we are working on that):: > int(s) E ValueError: invalid literal for int() with base 10: 'qwe' - <0-codegen $PYTHON_PREFIX/lib/python3.5/site-packages/_pytest/python_api.py:613>:1: ValueError + <0-codegen $PYTHON_PREFIX/lib/python3.5/site-packages/_pytest/python_api.py:615>:1: ValueError ______________________ TestRaises.test_raises_doesnt _______________________ self = diff --git a/doc/en/example/simple.rst b/doc/en/example/simple.rst index 25d1225b5..3dc942018 100644 --- a/doc/en/example/simple.rst +++ b/doc/en/example/simple.rst @@ -389,7 +389,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.16s call test_some_are_slow.py::test_funcfast + 0.10s call test_some_are_slow.py::test_funcfast ========================= 3 passed in 0.12 seconds ========================= incremental testing - test steps