Preparing release version 3.5.1
This commit is contained in:
parent
2a480c59ae
commit
8d56641590
|
@ -8,6 +8,61 @@
|
||||||
|
|
||||||
.. towncrier release notes start
|
.. 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
|
||||||
|
<https://github.com/pytest-dev/pytest/issues/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
|
||||||
|
<https://github.com/pytest-dev/pytest/issues/2798>`_)
|
||||||
|
|
||||||
|
- ``pytest.raises`` now raises ``TypeError`` when receiving an unknown keyword
|
||||||
|
argument. (`#3348 <https://github.com/pytest-dev/pytest/issues/3348>`_)
|
||||||
|
|
||||||
|
- ``pytest.raises`` now works with exception classes that look like iterables.
|
||||||
|
(`#3372 <https://github.com/pytest-dev/pytest/issues/3372>`_)
|
||||||
|
|
||||||
|
|
||||||
|
Improved Documentation
|
||||||
|
----------------------
|
||||||
|
|
||||||
|
- Fix typo in ``caplog`` fixture documentation, which incorrectly identified
|
||||||
|
certain attributes as methods. (`#3406
|
||||||
|
<https://github.com/pytest-dev/pytest/issues/3406>`_)
|
||||||
|
|
||||||
|
|
||||||
|
Trivial/Internal Changes
|
||||||
|
------------------------
|
||||||
|
|
||||||
|
- Remove internal ``_pytest.terminal.flatten`` function in favor of
|
||||||
|
``more_itertools.collapse``. (`#3330
|
||||||
|
<https://github.com/pytest-dev/pytest/issues/3330>`_)
|
||||||
|
|
||||||
|
- Import some modules from ``collections`` instead of ``collections.abc`` as
|
||||||
|
the former modules trigger ``DeprecationWarning`` in Python 3.7. (`#3339
|
||||||
|
<https://github.com/pytest-dev/pytest/issues/3339>`_)
|
||||||
|
|
||||||
|
- record_property is no longer experimental, removing the warnings was
|
||||||
|
forgotten. (`#3360 <https://github.com/pytest-dev/pytest/issues/3360>`_)
|
||||||
|
|
||||||
|
- Mention in documentation and CLI help that fixtures with leading ``_`` are
|
||||||
|
printed by ``pytest --fixtures`` only if the ``-v`` option is added. (`#3398
|
||||||
|
<https://github.com/pytest-dev/pytest/issues/3398>`_)
|
||||||
|
|
||||||
|
|
||||||
Pytest 3.5.0 (2018-03-21)
|
Pytest 3.5.0 (2018-03-21)
|
||||||
=========================
|
=========================
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@ Release announcements
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
|
|
||||||
|
release-3.5.1
|
||||||
release-3.5.0
|
release-3.5.0
|
||||||
release-3.4.2
|
release-3.4.2
|
||||||
release-3.4.1
|
release-3.4.1
|
||||||
|
|
|
@ -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
|
|
@ -358,7 +358,7 @@ get on the terminal - we are working on that)::
|
||||||
> int(s)
|
> int(s)
|
||||||
E ValueError: invalid literal for int() with base 10: 'qwe'
|
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 _______________________
|
______________________ TestRaises.test_raises_doesnt _______________________
|
||||||
|
|
||||||
self = <failure_demo.TestRaises object at 0xdeadbeef>
|
self = <failure_demo.TestRaises object at 0xdeadbeef>
|
||||||
|
|
|
@ -389,7 +389,7 @@ Now we can profile which test functions execute the slowest::
|
||||||
========================= slowest 3 test durations =========================
|
========================= slowest 3 test durations =========================
|
||||||
0.30s call test_some_are_slow.py::test_funcslow2
|
0.30s call test_some_are_slow.py::test_funcslow2
|
||||||
0.20s call test_some_are_slow.py::test_funcslow1
|
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 =========================
|
========================= 3 passed in 0.12 seconds =========================
|
||||||
|
|
||||||
incremental testing - test steps
|
incremental testing - test steps
|
||||||
|
|
Loading…
Reference in New Issue