Update dependency pytest to v8 - autoclosed
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
pytest (source, changelog) | dev-dependencies | major |
7.4.3 -> 8.0.2
|
Release Notes
pytest-dev/pytest (pytest)
v8.0.2
pytest 8.0.2 (2024-02-24)
Bug Fixes
-
#11895: Fix collection on Windows where initial paths contain the short version of a path (for example
c:\PROGRA~1\tests
). -
#11953: Fix an
IndexError
crash raising fromgetstatementrange_ast
. - #12021: Reverted a fix to [--maxfail]{.title-ref} handling in pytest 8.0.0 because it caused a regression in pytest-xdist whereby session fixture teardowns may get executed multiple times when the max-fails is reached.
v8.0.1
pytest 8.0.1 (2024-02-16)
Bug Fixes
-
#11875: Correctly handle errors from
getpass.getuser
{.interpreted-text role="func"} in Python 3.13. -
#11879: Fix an edge case where
ExceptionInfo._stringify_exception
could crashpytest.raises
{.interpreted-text role="func"}. -
#11906: Fix regression with
pytest.warns
{.interpreted-text role="func"} using custom warning subclasses which have more than one parameter in their [__init__]{.title-ref}. -
#11907: Fix a regression in pytest 8.0.0 whereby calling
pytest.skip
{.interpreted-text role="func"} and similar control-flow exceptions within apytest.warns()
{.interpreted-text role="func"} block would get suppressed instead of propagating. - #11929: Fix a regression in pytest 8.0.0 whereby autouse fixtures defined in a module get ignored by the doctests in the module.
- #11937: Fix a regression in pytest 8.0.0 whereby items would be collected in reverse order in some circumstances.
v8.0.0
: pytest 8.0.0 (2024-01-27)
See 8.0.0rc1 and 8.0.0rc2 for the full changes since pytest 7.4!
Bug Fixes
-
#11842: Properly escape the
reason
of askip <pytest.mark.skip ref>
{.interpreted-text role="ref"} mark when writing JUnit XML files. -
#11861: Avoid microsecond exceeds
1_000_000
when usinglog-date-format
with%f
specifier, which might cause the test suite to crash.
v7.4.4
: pytest 7.4.4 (2023-12-31)
Bug Fixes
- #11140: Fix non-string constants at the top of file being detected as docstrings on Python>=3.8.
-
#11572: Handle an edge case where
sys.stderr
{.interpreted-text role="data"} andsys.__stderr__
{.interpreted-text role="data"} might already be closed whenfaulthandler
{.interpreted-text role="ref"} is tearing down. - #11710: Fixed tracebacks from collection errors not getting pruned.
-
#7966: Removed unhelpful error message from assertion rewrite mechanism when exceptions are raised in
__iter__
methods. Now they are treated un-iterable instead.
Improved Documentation
-
#11091: Updated documentation to refer to hyphenated options: replaced
--junitxml
with--junit-xml
and--collectonly
with--collect-only
.
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.
Edited by renovate-bot