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.

0 commit comments

Comments
 (0)