Skip to content

Commit 69b1c2d

Browse files
authored
Merge pull request #3424 from nicoddemus/release-3.5.1
Preparing release version 3.5.1
2 parents d61a767 + 4a92011 commit 69b1c2d

File tree

5 files changed

+85
-2
lines changed

5 files changed

+85
-2
lines changed

CHANGELOG.rst

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,58 @@
88
99
.. towncrier release notes start
1010
11+
Pytest 3.5.1 (2018-04-23)
12+
=========================
13+
14+
15+
Bug Fixes
16+
---------
17+
18+
- Reset ``sys.last_type``, ``sys.last_value`` and ``sys.last_traceback`` before
19+
each test executes. Those attributes are added by pytest during the test run
20+
to aid debugging, but were never reset so they would create a leaking
21+
reference to the last failing test's frame which in turn could never be
22+
reclaimed by the garbage collector. (`#2798
23+
<https://github.com/pytest-dev/pytest/issues/2798>`_)
24+
25+
- ``pytest.raises`` now raises ``TypeError`` when receiving an unknown keyword
26+
argument. (`#3348 <https://github.com/pytest-dev/pytest/issues/3348>`_)
27+
28+
- ``pytest.raises`` now works with exception classes that look like iterables.
29+
(`#3372 <https://github.com/pytest-dev/pytest/issues/3372>`_)
30+
31+
32+
Improved Documentation
33+
----------------------
34+
35+
- Fix typo in ``caplog`` fixture documentation, which incorrectly identified
36+
certain attributes as methods. (`#3406
37+
<https://github.com/pytest-dev/pytest/issues/3406>`_)
38+
39+
40+
Trivial/Internal Changes
41+
------------------------
42+
43+
- Added a more indicative error message when parametrizing a function whose
44+
argument takes a default value. (`#3221
45+
<https://github.com/pytest-dev/pytest/issues/3221>`_)
46+
47+
- Remove internal ``_pytest.terminal.flatten`` function in favor of
48+
``more_itertools.collapse``. (`#3330
49+
<https://github.com/pytest-dev/pytest/issues/3330>`_)
50+
51+
- Import some modules from ``collections.abc`` instead of ``collections`` as
52+
the former modules trigger ``DeprecationWarning`` in Python 3.7. (`#3339
53+
<https://github.com/pytest-dev/pytest/issues/3339>`_)
54+
55+
- record_property is no longer experimental, removing the warnings was
56+
forgotten. (`#3360 <https://github.com/pytest-dev/pytest/issues/3360>`_)
57+
58+
- Mention in documentation and CLI help that fixtures with leading ``_`` are
59+
printed by ``pytest --fixtures`` only if the ``-v`` option is added. (`#3398
60+
<https://github.com/pytest-dev/pytest/issues/3398>`_)
61+
62+
1163
Pytest 3.5.0 (2018-03-21)
1264
=========================
1365

doc/en/announce/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Release announcements
66
:maxdepth: 2
77

88

9+
release-3.5.1
910
release-3.5.0
1011
release-3.4.2
1112
release-3.4.1

doc/en/announce/release-3.5.1.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
pytest-3.5.1
2+
=======================================
3+
4+
pytest 3.5.1 has just been released to PyPI.
5+
6+
This is a bug-fix release, being a drop-in replacement. To upgrade::
7+
8+
pip install --upgrade pytest
9+
10+
The full changelog is available at http://doc.pytest.org/en/latest/changelog.html.
11+
12+
Thanks to all who contributed to this release, among them:
13+
14+
* Brian Maissy
15+
* Bruno Oliveira
16+
* Darren Burns
17+
* David Chudzicki
18+
* Floris Bruynooghe
19+
* Holger Kohr
20+
* Irmen de Jong
21+
* Jeffrey Rackauckas
22+
* Rachel Kogan
23+
* Ronny Pfannschmidt
24+
* Stefan Scherfke
25+
* Tim Strazny
26+
* Семён Марьясин
27+
28+
29+
Happy testing,
30+
The pytest Development Team

doc/en/example/reportingdemo.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ get on the terminal - we are working on that)::
358358
> int(s)
359359
E ValueError: invalid literal for int() with base 10: 'qwe'
360360
361-
<0-codegen $PYTHON_PREFIX/lib/python3.5/site-packages/_pytest/python_api.py:613>:1: ValueError
361+
<0-codegen $PYTHON_PREFIX/lib/python3.5/site-packages/_pytest/python_api.py:615>:1: ValueError
362362
______________________ TestRaises.test_raises_doesnt _______________________
363363
364364
self = <failure_demo.TestRaises object at 0xdeadbeef>

doc/en/example/simple.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ Now we can profile which test functions execute the slowest::
389389
========================= slowest 3 test durations =========================
390390
0.30s call test_some_are_slow.py::test_funcslow2
391391
0.20s call test_some_are_slow.py::test_funcslow1
392-
0.16s call test_some_are_slow.py::test_funcfast
392+
0.10s call test_some_are_slow.py::test_funcfast
393393
========================= 3 passed in 0.12 seconds =========================
394394

395395
incremental testing - test steps

0 commit comments

Comments
 (0)