Skip to content

Commit 917195e

Browse files
authored
Merge pull request #5350 from asottile/release-4.6.0
Release 4.6.0
2 parents f360147 + e7cd00a commit 917195e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+867
-475
lines changed

.travis.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,9 @@ matrix:
112112
allow_failures:
113113
- python: '3.8-dev'
114114
env: TOXENV=py38-xdist
115-
# temporary until pytest 4.6 is released
116-
- env: TOXENV=py27-pluggymaster-xdist
117-
python: '2.7'
118-
- env: TOXENV=py37-pluggymaster-xdist
119-
115+
# Temporary (https://github.com/pytest-dev/pytest/pull/5334).
116+
- env: TOXENV=pypy3-xdist
117+
python: 'pypy3'
120118

121119
before_script:
122120
- |

CHANGELOG.rst

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,84 @@ with advance notice in the **Deprecations** section of releases.
1818
1919
.. towncrier release notes start
2020
21+
pytest 4.6.0 (2019-05-31)
22+
=========================
23+
24+
Important
25+
---------
26+
27+
The ``4.6.X`` series will be the last series to support **Python 2 and Python 3.4**.
28+
29+
For more details, see our `Python 2.7 and 3.4 support plan <https://docs.pytest.org/en/latest/py27-py34-deprecation.html>`__.
30+
31+
32+
Features
33+
--------
34+
35+
- `#4559 <https://github.com/pytest-dev/pytest/issues/4559>`_: Added the ``junit_log_passing_tests`` ini value which can be used to enable or disable logging of passing test output in the Junit XML file.
36+
37+
38+
- `#4956 <https://github.com/pytest-dev/pytest/issues/4956>`_: pytester's ``testdir.spawn`` uses ``tmpdir`` as HOME/USERPROFILE directory.
39+
40+
41+
- `#5062 <https://github.com/pytest-dev/pytest/issues/5062>`_: Unroll calls to ``all`` to full for-loops with assertion rewriting for better failure messages, especially when using Generator Expressions.
42+
43+
44+
- `#5063 <https://github.com/pytest-dev/pytest/issues/5063>`_: Switch from ``pkg_resources`` to ``importlib-metadata`` for entrypoint detection for improved performance and import time.
45+
46+
47+
- `#5091 <https://github.com/pytest-dev/pytest/issues/5091>`_: The output for ini options in ``--help`` has been improved.
48+
49+
50+
- `#5269 <https://github.com/pytest-dev/pytest/issues/5269>`_: ``pytest.importorskip`` includes the ``ImportError`` now in the default ``reason``.
51+
52+
53+
- `#5311 <https://github.com/pytest-dev/pytest/issues/5311>`_: Captured logs that are output for each failing test are formatted using the
54+
ColoredLevelFormatter.
55+
56+
57+
- `#5312 <https://github.com/pytest-dev/pytest/issues/5312>`_: Improved formatting of multiline log messages in Python 3.
58+
59+
60+
61+
Bug Fixes
62+
---------
63+
64+
- `#2064 <https://github.com/pytest-dev/pytest/issues/2064>`_: The debugging plugin imports the wrapped ``Pdb`` class (``--pdbcls``) on-demand now.
65+
66+
67+
- `#4908 <https://github.com/pytest-dev/pytest/issues/4908>`_: The ``pytest_enter_pdb`` hook gets called with post-mortem (``--pdb``).
68+
69+
70+
- `#5036 <https://github.com/pytest-dev/pytest/issues/5036>`_: Fix issue where fixtures dependent on other parametrized fixtures would be erroneously parametrized.
71+
72+
73+
- `#5256 <https://github.com/pytest-dev/pytest/issues/5256>`_: Handle internal error due to a lone surrogate unicode character not being representable in Jython.
74+
75+
76+
- `#5257 <https://github.com/pytest-dev/pytest/issues/5257>`_: Ensure that ``sys.stdout.mode`` does not include ``'b'`` as it is a text stream.
77+
78+
79+
- `#5278 <https://github.com/pytest-dev/pytest/issues/5278>`_: Pytest's internal python plugin can be disabled using ``-p no:python`` again.
80+
81+
82+
- `#5286 <https://github.com/pytest-dev/pytest/issues/5286>`_: Fix issue with ``disable_test_id_escaping_and_forfeit_all_rights_to_community_support`` option not working when using a list of test IDs in parametrized tests.
83+
84+
85+
- `#5330 <https://github.com/pytest-dev/pytest/issues/5330>`_: Show the test module being collected when emitting ``PytestCollectionWarning`` messages for
86+
test classes with ``__init__`` and ``__new__`` methods to make it easier to pin down the problem.
87+
88+
89+
- `#5333 <https://github.com/pytest-dev/pytest/issues/5333>`_: Fix regression in 4.5.0 with ``--lf`` not re-running all tests with known failures from non-selected tests.
90+
91+
92+
93+
Improved Documentation
94+
----------------------
95+
96+
- `#5250 <https://github.com/pytest-dev/pytest/issues/5250>`_: Expand docs on use of ``setenv`` and ``delenv`` with ``monkeypatch``.
97+
98+
2199
pytest 4.5.0 (2019-05-11)
22100
=========================
23101

changelog/2064.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/4908.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/5036.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/5250.doc.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/5256.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/5257.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/5278.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/5286.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/5330.bugfix.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.

changelog/5333.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

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-4.6.0
910
release-4.5.0
1011
release-4.4.2
1112
release-4.4.1

doc/en/announce/release-4.6.0.rst

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
pytest-4.6.0
2+
=======================================
3+
4+
The pytest team is proud to announce the 4.6.0 release!
5+
6+
pytest is a mature Python testing tool with more than a 2000 tests
7+
against itself, passing on many different interpreters and platforms.
8+
9+
This release contains a number of bugs fixes and improvements, so users are encouraged
10+
to take a look at the CHANGELOG:
11+
12+
https://docs.pytest.org/en/latest/changelog.html
13+
14+
For complete documentation, please visit:
15+
16+
https://docs.pytest.org/en/latest/
17+
18+
As usual, you can upgrade from pypi via:
19+
20+
pip install -U pytest
21+
22+
Thanks to all who contributed to this release, among them:
23+
24+
* Akiomi Kamakura
25+
* Anthony Sottile
26+
* Bruno Oliveira
27+
* Daniel Hahler
28+
* David Röthlisberger
29+
* Evan Kepner
30+
* Jeffrey Rackauckas
31+
* MyComputer
32+
* Nikita Krokosh
33+
* Raul Tambre
34+
* Thomas Hisch
35+
* Tim Hoffmann
36+
* Tomer Keren
37+
* Victor Maryama
38+
* danielx123
39+
* oleg-yegorov
40+
41+
42+
Happy testing,
43+
The Pytest Development Team

doc/en/example/parametrize.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ Running it results in some skips if we don't have all the python interpreters in
436436
. $ pytest -rs -q multipython.py
437437
...sss...sssssssss...sss... [100%]
438438
========================= short test summary info ==========================
439-
SKIPPED [15] $REGENDOC_TMPDIR/CWD/multipython.py:30: 'python3.4' not found
439+
SKIPPED [15] $REGENDOC_TMPDIR/CWD/multipython.py:31: 'python3.4' not found
440440
12 passed, 15 skipped in 0.12 seconds
441441
442442
Indirect parametrization of optional implementations/imports
@@ -494,7 +494,7 @@ If you run this with reporting for skips enabled:
494494
test_module.py .s [100%]
495495
496496
========================= short test summary info ==========================
497-
SKIPPED [1] $REGENDOC_TMPDIR/conftest.py:11: could not import 'opt2'
497+
SKIPPED [1] $REGENDOC_TMPDIR/conftest.py:11: could not import 'opt2': No module named 'opt2'
498498
=================== 1 passed, 1 skipped in 0.12 seconds ====================
499499
500500
You'll see that we don't have an ``opt2`` module and thus the second test run

0 commit comments

Comments
 (0)