Skip to content

Commit b319375

Browse files
committed
Preparing release version 3.4.1
1 parent f8fdf0a commit b319375

File tree

5 files changed

+92
-3
lines changed

5 files changed

+92
-3
lines changed

CHANGELOG.rst

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,67 @@
88
99
.. towncrier release notes start
1010
11+
Pytest 3.4.1 (2018-02-20)
12+
=========================
13+
14+
Bug Fixes
15+
---------
16+
17+
- Move import of ``doctest.UnexpectedException`` to top-level to avoid possible
18+
errors when using ``--pdb``. (`#1810
19+
<https://github.com/pytest-dev/pytest/issues/1810>`_)
20+
21+
- Added printing of captured stdout/stderr before entering pdb, and improved a
22+
test which was giving false negatives about output capturing. (`#3052
23+
<https://github.com/pytest-dev/pytest/issues/3052>`_)
24+
25+
- Fix ordering of tests using parametrized fixtures which can lead to fixtures
26+
being created more than necessary. (`#3161
27+
<https://github.com/pytest-dev/pytest/issues/3161>`_)
28+
29+
- Fix bug where logging happening at hooks outside of "test run" hooks would
30+
cause an internal error. (`#3184
31+
<https://github.com/pytest-dev/pytest/issues/3184>`_)
32+
33+
- Detect arguments injected by ``unittest.mock.patch`` decorator correctly when
34+
pypi ``mock.patch`` is installed and imported. (`#3206
35+
<https://github.com/pytest-dev/pytest/issues/3206>`_)
36+
37+
- Errors shown when a ``pytest.raises()`` with ``match=`` fails are now cleaner
38+
on what happened: When no exception was raised, the "matching '...'" part got
39+
removed as it falsely implies that an exception was raised but it didn't
40+
match. When a wrong exception was raised, it's now thrown (like
41+
``pytest.raised()`` without ``match=`` would) instead of complaining about
42+
the unmatched text. (`#3222
43+
<https://github.com/pytest-dev/pytest/issues/3222>`_)
44+
45+
- Fixed output capture handling in doctests on macOS. (`#985
46+
<https://github.com/pytest-dev/pytest/issues/985>`_)
47+
48+
49+
Improved Documentation
50+
----------------------
51+
52+
- Add Sphinx parameter docs for ``match`` and ``message`` args to
53+
``pytest.raises``. (`#3202
54+
<https://github.com/pytest-dev/pytest/issues/3202>`_)
55+
56+
57+
Trivial/Internal Changes
58+
------------------------
59+
60+
- pytest has changed the publication procedure and is now being published to
61+
PyPI directly from Travis. (`#3060
62+
<https://github.com/pytest-dev/pytest/issues/3060>`_)
63+
64+
- Rename ``ParameterSet._for_parameterize()`` to ``_for_parametrize()`` in
65+
order to comply with the naming convention. (`#3166
66+
<https://github.com/pytest-dev/pytest/issues/3166>`_)
67+
68+
- Skip failing pdb/doctest test on mac. (`#985
69+
<https://github.com/pytest-dev/pytest/issues/985>`_)
70+
71+
1172
Pytest 3.4.0 (2018-01-30)
1273
=========================
1374

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.4.1
910
release-3.4.0
1011
release-3.3.2
1112
release-3.3.1

doc/en/announce/release-3.4.1.rst

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
pytest-3.4.1
2+
=======================================
3+
4+
pytest 3.4.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+
* Aaron
15+
* Alan Velasco
16+
* Andy Freeland
17+
* Brian Maissy
18+
* Bruno Oliveira
19+
* Florian Bruhin
20+
* Jason R. Coombs
21+
* Marcin Bachry
22+
* Pedro Algarvio
23+
* Ronny Pfannschmidt
24+
25+
26+
Happy testing,
27+
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:580>:1: ValueError
361+
<0-codegen $PYTHON_PREFIX/lib/python3.5/site-packages/_pytest/python_api.py:583>:1: ValueError
362362
______________________ TestRaises.test_raises_doesnt _______________________
363363
364364
self = <failure_demo.TestRaises object at 0xdeadbeef>

doc/en/example/simple.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,8 @@ Now we can profile which test functions execute the slowest::
385385
test_some_are_slow.py ... [100%]
386386
387387
========================= slowest 3 test durations =========================
388-
0.58s call test_some_are_slow.py::test_funcslow2
389-
0.41s call test_some_are_slow.py::test_funcslow1
388+
0.30s call test_some_are_slow.py::test_funcslow2
389+
0.20s call test_some_are_slow.py::test_funcslow1
390390
0.10s call test_some_are_slow.py::test_funcfast
391391
========================= 3 passed in 0.12 seconds =========================
392392

0 commit comments

Comments
 (0)