Bump pytest from 7.4.4 to 8.0.2
Bumps pytest from 7.4.4 to 8.0.2.
Release notes
Sourced from pytest's releases.
8.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.
8.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.
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.8.0.0rc2
pytest 8.0.0rc2 (2024-01-17)
Improvements
- #11233: Improvements to
-r
for xfailures and xpasses:
- Report tracebacks for xfailures when
-rx
is set.- Report captured output for xpasses when
-rX
is set.- For xpasses, add
-
in summary between test name and reason, to match how xfail is displayed.- #11825: The
pytest_plugin_registered
{.interpreted-text role="hook"} hook has a newplugin_name
parameter containing the name by whichplugin
is registered.Bug Fixes
- #11706: Fix reporting of teardown errors in higher-scoped fixtures when using [--maxfail]{.title-ref} or [--stepwise]{.title-ref}.
... (truncated)
Commits
-
31afeeb
Prepare release version 8.0.2 -
1b00a2f
Merge pull request #12025 from pytest-dev/backport-12022-to-8.0.x -
ff2f66d
[8.0.x] Revert "Fix teardown error reporting when--maxfail=1
(#11721)" -
8a8eed6
[8.0.x] Fix collection of short paths on Windows (#12024) -
74346f0
[8.0.x] Allow Sphinx 7.x (#12005) -
b7657b4
[8.0.x] Disallow Sphinx 6 and 7 (#12001) -
feb7c5e
Merge pull request #11999 from pytest-dev/backport-11996-to-8.0.x -
0909655
[8.0.x] code: fixIndexError
crash ingetstatementrange_ast
-
68524d4
Merge pull request #11993 from pytest-dev/release-8.0.1 -
d7d320a
Prepare release version 8.0.1 - Additional commits viewable in compare view