Skip to content

Bump pytest from 7.1.3 to 7.2.1

WKDV Bot requested to merge dependabot/pip/pytest-7.2.1 into develop

Bumps pytest from 7.1.3 to 7.2.1.

Release notes

Sourced from pytest's releases.

7.2.1

pytest 7.2.1 (2023-01-13)

Bug Fixes

  • #10452: Fix 'importlib.abc.TraversableResources' deprecation warning in Python 3.12.
  • #10457: If a test is skipped from inside a fixture, the test summary now shows the test location instead of the fixture location.
  • #10506: Fix bug where sometimes pytest would use the file system root directory as rootdir <rootdir>{.interpreted-text role="ref"} on Windows.
  • #10607: Fix a race condition when creating junitxml reports, which could occur when multiple instances of pytest execute in parallel.
  • #10641: Fix a race condition when creating or updating the stepwise plugin's cache, which could occur when multiple xdist worker nodes try to simultaneously update the stepwise plugin's cache.

7.2.0

pytest 7.2.0 (2022-10-23)

Deprecations

  • #10012: Update pytest.PytestUnhandledCoroutineWarning{.interpreted-text role="class"} to a deprecation; it will raise an error in pytest 8.

  • #10396: pytest no longer depends on the py library. pytest provides a vendored copy of py.error and py.path modules but will use the py library if it is installed. If you need other py.* modules, continue to install the deprecated py library separately, otherwise it can usually be removed as a dependency.

  • #4562: Deprecate configuring hook specs/impls using attributes/marks.

    Instead use :pypytest.hookimpl{.interpreted-text role="func"} and :pypytest.hookspec{.interpreted-text role="func"}. For more details, see the docs <legacy-path-hooks-deprecated>{.interpreted-text role="ref"}.

  • #9886: The functionality for running tests written for nose has been officially deprecated.

    This includes:

    • Plain setup and teardown functions and methods: this might catch users by surprise, as setup() and teardown() are not pytest idioms, but part of the nose support.
    • Setup/teardown using the @​with_setup decorator.

    For more details, consult the deprecation docs <nose-deprecation>{.interpreted-text role="ref"}.

Features

  • #9897: Added shell-style wildcard support to testpaths.

Improvements

  • #10218: @pytest.mark.parametrize() (and similar functions) now accepts any Sequence[str] for the argument names, instead of just list[str] and tuple[str, ...].

    (Note that str, which is itself a Sequence[str], is still treated as a comma-delimited name list, as before).

... (truncated)

Commits
  • 1ae778f Prepare release version 7.2.1
  • cb07711 Merge pull request #10656 from pytest-dev/backport-10641-to-7.2.x
  • 9440702 Merge pull request #10657 from pytest-dev/backport-10640-to-7.2.x
  • e8055c1 [7.2.x] Fix regen tox environment
  • f22fbbf [7.2.x] Dont update cache from xdist worker
  • 211d08e Merge pull request #10638 from pytest-dev/backport-10607-to-7.2.x
  • a6f85a0 [7.2.x] Mitigate directory creation race condition
  • 08d0dd0 Merge pull request #10637 from pytest-dev/backport-10632-to-7.2.x
  • 405fd15 [7.2.x] Fix tests pygments 2.14.0
  • c16315f Merge pull request #10586 from nicoddemus/backport-10578
  • Additional commits viewable in compare view

Merge request reports

Loading