Skip to content

Commit

Permalink
Preparing release version 4.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile committed Jun 1, 2019
1 parent 693c3b7 commit e7cd00a
Show file tree
Hide file tree
Showing 24 changed files with 174 additions and 72 deletions.
78 changes: 78 additions & 0 deletions CHANGELOG.rst
Expand Up @@ -18,6 +18,84 @@ with advance notice in the **Deprecations** section of releases.
.. towncrier release notes start
pytest 4.6.0 (2019-05-31)
=========================

Important
---------

The ``4.6.X`` series will be the last series to support **Python 2 and Python 3.4**.

For more details, see our `Python 2.7 and 3.4 support plan <https://docs.pytest.org/en/latest/py27-py34-deprecation.html>`__.


Features
--------

- `#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.


- `#4956 <https://github.com/pytest-dev/pytest/issues/4956>`_: pytester's ``testdir.spawn`` uses ``tmpdir`` as HOME/USERPROFILE directory.


- `#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.


- `#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.


- `#5091 <https://github.com/pytest-dev/pytest/issues/5091>`_: The output for ini options in ``--help`` has been improved.


- `#5269 <https://github.com/pytest-dev/pytest/issues/5269>`_: ``pytest.importorskip`` includes the ``ImportError`` now in the default ``reason``.


- `#5311 <https://github.com/pytest-dev/pytest/issues/5311>`_: Captured logs that are output for each failing test are formatted using the
ColoredLevelFormatter.


- `#5312 <https://github.com/pytest-dev/pytest/issues/5312>`_: Improved formatting of multiline log messages in Python 3.



Bug Fixes
---------

- `#2064 <https://github.com/pytest-dev/pytest/issues/2064>`_: The debugging plugin imports the wrapped ``Pdb`` class (``--pdbcls``) on-demand now.


- `#4908 <https://github.com/pytest-dev/pytest/issues/4908>`_: The ``pytest_enter_pdb`` hook gets called with post-mortem (``--pdb``).


- `#5036 <https://github.com/pytest-dev/pytest/issues/5036>`_: Fix issue where fixtures dependent on other parametrized fixtures would be erroneously parametrized.


- `#5256 <https://github.com/pytest-dev/pytest/issues/5256>`_: Handle internal error due to a lone surrogate unicode character not being representable in Jython.


- `#5257 <https://github.com/pytest-dev/pytest/issues/5257>`_: Ensure that ``sys.stdout.mode`` does not include ``'b'`` as it is a text stream.


- `#5278 <https://github.com/pytest-dev/pytest/issues/5278>`_: Pytest's internal python plugin can be disabled using ``-p no:python`` again.


- `#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.


- `#5330 <https://github.com/pytest-dev/pytest/issues/5330>`_: Show the test module being collected when emitting ``PytestCollectionWarning`` messages for
test classes with ``__init__`` and ``__new__`` methods to make it easier to pin down the problem.


- `#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.



Improved Documentation
----------------------

- `#5250 <https://github.com/pytest-dev/pytest/issues/5250>`_: Expand docs on use of ``setenv`` and ``delenv`` with ``monkeypatch``.


pytest 4.5.0 (2019-05-11)
=========================

Expand Down
1 change: 0 additions & 1 deletion changelog/2064.bugfix.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/4559.feature.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/4908.bugfix.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/4956.feature.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/5036.bugfix.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/5062.feature.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/5063.feature.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/5091.feature.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/5250.doc.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/5256.bugfix.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/5257.bugfix.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/5269.feature.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/5278.bugfix.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/5286.bugfix.rst

This file was deleted.

2 changes: 0 additions & 2 deletions changelog/5311.feature.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/5312.feature.rst

This file was deleted.

2 changes: 0 additions & 2 deletions changelog/5330.bugfix.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/5333.bugfix.rst

This file was deleted.

1 change: 1 addition & 0 deletions doc/en/announce/index.rst
Expand Up @@ -6,6 +6,7 @@ Release announcements
:maxdepth: 2


release-4.6.0
release-4.5.0
release-4.4.2
release-4.4.1
Expand Down
43 changes: 43 additions & 0 deletions doc/en/announce/release-4.6.0.rst
@@ -0,0 +1,43 @@
pytest-4.6.0
=======================================

The pytest team is proud to announce the 4.6.0 release!

pytest is a mature Python testing tool with more than a 2000 tests
against itself, passing on many different interpreters and platforms.

This release contains a number of bugs fixes and improvements, so users are encouraged
to take a look at the CHANGELOG:

https://docs.pytest.org/en/latest/changelog.html

For complete documentation, please visit:

https://docs.pytest.org/en/latest/

As usual, you can upgrade from pypi via:

pip install -U pytest

Thanks to all who contributed to this release, among them:

* Akiomi Kamakura
* Anthony Sottile
* Bruno Oliveira
* Daniel Hahler
* David Röthlisberger
* Evan Kepner
* Jeffrey Rackauckas
* MyComputer
* Nikita Krokosh
* Raul Tambre
* Thomas Hisch
* Tim Hoffmann
* Tomer Keren
* Victor Maryama
* danielx123
* oleg-yegorov


Happy testing,
The Pytest Development Team
4 changes: 2 additions & 2 deletions doc/en/example/parametrize.rst
Expand Up @@ -436,7 +436,7 @@ Running it results in some skips if we don't have all the python interpreters in
. $ pytest -rs -q multipython.py
...sss...sssssssss...sss... [100%]
========================= short test summary info ==========================
SKIPPED [15] $REGENDOC_TMPDIR/CWD/multipython.py:30: 'python3.4' not found
SKIPPED [15] $REGENDOC_TMPDIR/CWD/multipython.py:31: 'python3.4' not found
12 passed, 15 skipped in 0.12 seconds
Indirect parametrization of optional implementations/imports
Expand Down Expand Up @@ -494,7 +494,7 @@ If you run this with reporting for skips enabled:
test_module.py .s [100%]
========================= short test summary info ==========================
SKIPPED [1] $REGENDOC_TMPDIR/conftest.py:11: could not import 'opt2'
SKIPPED [1] $REGENDOC_TMPDIR/conftest.py:11: could not import 'opt2': No module named 'opt2'
=================== 1 passed, 1 skipped in 0.12 seconds ====================
You'll see that we don't have an ``opt2`` module and thus the second test run
Expand Down

0 comments on commit e7cd00a

Please sign in to comment.