Skip to content

Release 4.6.0 #5350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 69 commits into from
Jun 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
da3f836
Added the junit_log_passing_tests ini flag.
jeffreyrack Apr 5, 2019
0b8b006
minor: improve formatting
blueyed May 9, 2019
cc464f6
Merge master into features (#5248)
nicoddemus May 12, 2019
dda2193
tests: fix test_trace_after_runpytest
blueyed May 11, 2019
f8e1d58
minor: settrace != set_trace
blueyed May 14, 2019
c081c01
minor: s/no covers/no cover/
blueyed May 14, 2019
2db05b6
Merge master into features
blueyed May 14, 2019
c0e53a6
Merge pull request #5263 from blueyed/mm
blueyed May 15, 2019
041ea37
Merge remote-tracking branch 'upstream/master' into merge-master-into…
nicoddemus May 16, 2019
0f7c7a9
Merge pull request #5281 from nicoddemus/merge-master-into-features
blueyed May 17, 2019
ff428bf
tests: harden test_nonascii_text
blueyed May 15, 2019
d19df5e
importorskip: display/include ImportError
blueyed May 15, 2019
b2ce6f3
Improve output of ini options in --help
blueyed Apr 11, 2019
f9f41e6
reportopts: A: put "Pp" in front
blueyed Apr 14, 2019
b900b41
importorskip: display/include ImportError (#5269)
nicoddemus May 23, 2019
6ba5e3c
tests: fix test_trace_after_runpytest (#5245)
nicoddemus May 23, 2019
ec6d0fa
Merge pull request #5268 from blueyed/harden-test
blueyed May 23, 2019
b4d75ad
Merge pull request #5091 from blueyed/showhelp-ini-options
nicoddemus May 24, 2019
10ca84f
Merge pull request #5119 from blueyed/reportopts-A-order
blueyed May 24, 2019
6b5152a
Sanity tests for loop unrolling
Tadaboody Apr 13, 2019
765f75a
Replace asserts of `any` with an assert in a for
Tadaboody Apr 13, 2019
470e686
Rewrite unrolled assertion with a new rewriter,correctly append the u…
Tadaboody Apr 13, 2019
ddbe733
Add changelog entry for 5062
Tadaboody Apr 13, 2019
a0dbf2a
Adding test cases for unrolling an iterable #5062
danielx123 Apr 22, 2019
0996f3d
Displaying pip list command's packages and versions #5062
danielx123 Apr 22, 2019
c607697
Fixed test case
danielx123 Apr 23, 2019
ecd2de2
Revert "Displaying pip list command's packages and versions #5062"
Tadaboody May 9, 2019
e37ff30
Check calls to all only if it's a name and not an attribute
Tadaboody May 9, 2019
437d645
Expand list comprehensions as well
Tadaboody May 9, 2019
852fb6a
Change basic test case to be consistent with existing assertion rewri…
Tadaboody May 9, 2019
5814945
Mark visit_all as a private method
Tadaboody May 9, 2019
322a0f0
Fix mention of issue #5062 in docstrings
Tadaboody May 9, 2019
22d91a3
Unroll calls to all on python 2
Tadaboody May 18, 2019
b3f8fab
Merge pull request #5308 from blueyed/minor
asottile May 26, 2019
13f02af
Switch to importlib-metadata
asottile Apr 7, 2019
0a57124
Merge pull request #5063 from asottile/importlib_metadata_v2
asottile May 27, 2019
2b9ca34
Unroll calls to any #5062 (#5103)
nicoddemus May 27, 2019
e032904
Merge master into features
blueyed May 27, 2019
6061ecf
Merge master into features (#5319)
blueyed May 28, 2019
220a2a1
Remove _pytest.compat.NoneType
blueyed May 28, 2019
97d8e9f
minor: getbasetemp: dedent, improve assert
blueyed May 28, 2019
d4b85da
Use same code for setting up cli/non-cli formatter
twmr May 25, 2019
a930ca0
Remove _pytest.compat.NoneType (#5326)
nicoddemus May 28, 2019
5bc3ad8
minor: getbasetemp: dedent, improve assert (#5327)
nicoddemus May 28, 2019
31b1c4c
Update changelog/5311.feature.rst
twmr May 29, 2019
af21e6b
Merge master into features
blueyed May 29, 2019
84569ca
Merge pull request #5311 from thisch/coloredcaplog
twmr May 29, 2019
ea3ebec
logging: Improve formatting of multiline message
twmr May 24, 2019
b0f0908
Merge master into features (#5332)
nicoddemus May 29, 2019
b10f289
Add the junit_log_passing_tests ini flag to skip logging output for p…
nicoddemus May 29, 2019
f9cafd1
Add missing junitxml ini options to the reference docs
nicoddemus May 30, 2019
61dfd0a
pdb: move/refactor initialization of PytestPdbWrapper
blueyed May 28, 2019
6765aca
Merge master into features
blueyed May 30, 2019
5ac498e
ci: Travis: add pypy3 to allowed failures temporarily
blueyed May 30, 2019
d6ce2e5
Merge pull request #5322 from blueyed/pdb-wrapper
blueyed May 30, 2019
28bf381
tests: conftest: auto-add slow marker
blueyed May 30, 2019
da23aa3
pytester: remove unused winpymap
blueyed May 30, 2019
843ca03
Merge pull request #5343 from blueyed/remove-winpymap
nicoddemus May 30, 2019
737a1bf
Merge pull request #5341 from blueyed/auto-slow
blueyed May 30, 2019
fbd8ff9
Merge master into features (#5339)
nicoddemus May 30, 2019
f013a5e
pytester: use temporary HOME with spawn
blueyed May 24, 2019
ace3a02
pytester: factor out testdir._env_run_update
blueyed May 24, 2019
56e430f
Merge pull request #5338 from nicoddemus/junit_log_passing_tests-ref-…
asottile May 30, 2019
882f3a4
Merge pull request #5306 from blueyed/spawn-home
blueyed May 30, 2019
c5de8e8
ci: Travis: add pypy3 to allowed failures temporarily (#5340)
nicoddemus May 31, 2019
c8d23c2
logging: Improve formatting of multiline message (#5312)
nicoddemus May 31, 2019
fb3ae5e
Merge remote-tracking branch 'origin/master' into mm
asottile May 31, 2019
693c3b7
Merge pull request #5349 from asottile/mm
blueyed May 31, 2019
e7cd00a
Preparing release version 4.6.0
asottile May 31, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,9 @@ matrix:
allow_failures:
- python: '3.8-dev'
env: TOXENV=py38-xdist
# temporary until pytest 4.6 is released
- env: TOXENV=py27-pluggymaster-xdist
python: '2.7'
- env: TOXENV=py37-pluggymaster-xdist

# Temporary (https://github.com/pytest-dev/pytest/pull/5334).
- env: TOXENV=pypy3-xdist
python: 'pypy3'

before_script:
- |
Expand Down
78 changes: 78 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
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/4908.bugfix.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/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/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/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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Loading