Sourced from pytest's releases.
\n\n\n7.1.0
\npytest 7.1.0 (2022-03-13)
\nBreaking Changes
\n\n
\n- \n
\n#8838: As per our policy, the following features have been deprecated in the 6.X series and are now\nremoved:
\n\n
\n- \n
pytest._fillfuncargs
function.- \n
pytest_warning_captured
hook - usepytest_warning_recorded
instead.- \n
-k -foobar
syntax - use-k 'not foobar'
instead.- \n
-k foobar:
syntax.- \n
pytest.collect
module - import frompytest
directly.For more information consult\nDeprecations and Removals in the docs.
\n- \n
\n#9437: Dropped support for Python 3.6, which reached end-of-life at 2021-12-23.
\nImprovements
\n\n
\n- \n
\n#5192: Fixed test output for some data types where
\n-v
would show less information.Also, when showing diffs for sequences,
\n-q
would produce full diffs instead of the expected diff.- \n
\n#9362: pytest now avoids specialized assert formatting when it is detected that the default
\n__eq__
is overridden inattrs
ordataclasses
.- \n
\n#9536: When
\n-vv
is given on command line, show skipping and xfail reasons in full instead of truncating them to fit the terminal width.- \n
\n#9644: More information about the location of resources that led Python to raise
\nResourceWarning
{.interpreted-text role="class"} can now\nbe obtained by enablingtracemalloc
{.interpreted-text role="mod"}.See
\nresource-warnings
{.interpreted-text role="ref"} for more information.- \n
\n#9678: More types are now accepted in the
\nids
argument to@pytest.mark.parametrize
.\nPreviously only [str]{.title-ref}, [float]{.title-ref}, [int]{.title-ref} and [bool]{.title-ref} were accepted;\nnow [bytes]{.title-ref}, [complex]{.title-ref}, [re.Pattern]{.title-ref}, [Enum]{.title-ref} and anything with a [__name__]{.title-ref} are also accepted.- \n
\n#9692:
\npytest.approx
{.interpreted-text role="func"} now raises aTypeError
{.interpreted-text role="class"} when given an unordered sequence (such asset
{.interpreted-text role="class"}).Note that this implies that custom classes which only implement
\n__iter__
and__len__
are no longer supported as they don't guarantee order.Bug Fixes
\n\n
\n\n- #8242: The deprecation of raising
\nunittest.SkipTest
{.interpreted-text role="class"} to skip collection of\ntests during the pytest collection phase is reverted - this is now a supported\nfeature again.- #9493: Symbolic link components are no longer resolved in conftest paths.\nThis means that if a conftest appears twice in collection tree, using symlinks, it will be executed twice.
\n
... (truncated)
\n1dbffcc
[pre-commit.ci] auto fixes from pre-commit.com hooksd53a5fb
Prepare release version 7.1.0d306ec0
Update upcoming trainings (#9744)3e4c14b
Merge pull request #9751 from fabianegli/main7f924b1
Fix typo in deprecation documentation4a8f8ad
build(deps): Bump django from 4.0.2 to 4.0.3 in /testing/plugins_integration ...c0fd2d8
build(deps): Bump pytest-asyncio from 0.18.1 to 0.18.2 in /testing/plugins_in...843e018
Merge pull request #9732 from nicoddemus/9730-toml-failurebc43d66
[automated] Update plugin list (#9733)e38d1ca
Improve error message for malformed pyproject.toml files