nicoddemus released this
Aug 16, 2019
· 6 commits to master since this release
#5180: As per our policy, the following features have been deprecated in the 4.X series and are now removed:
For more information consult Deprecations and Removals in the docs.
#5565: Removed unused support code for unittest2.
The unittest2 backport module is no longer necessary since Python 3.3+, and the small amount of code in pytest to support it also doesn't seem to be used: after removed, all tests still pass unchanged.
Although our policy is to introduce a deprecation period before removing any features or support for third party libraries, because this code is apparently not used at all (even if unittest2 is used by a test suite executed by pytest), it was decided to remove it in this release.
If you experience a regression because of this, please file an issue.
#5615: pytest.fail, pytest.xfail and pytest.skip no longer support bytes for the message argument.
This was supported for Python 2 where it was tempting to use "message" instead of u"message".
Python 3 code is unlikely to pass bytes to these functions. If you do, please decode it to an str beforehand.
#5471: JUnit XML now includes a timestamp and hostname in the testsuite tag.
#5707: Time taken to run the test suite now includes a human-readable representation when it takes over 60 seconds, for example:
===== 2 failed in 102.70s (0:01:42) =====