build(deps-dev): bump pytest from 8.4.0 to 9.0.0
Bumps pytest from 8.4.0 to 9.0.0.
Release notes
Sourced from pytest's releases.
9.0.0
pytest 9.0.0 (2025-11-05)
New features
#1367: Support for subtests has been added.
subtests <subtests>are an alternative to parametrization, useful in situations where the parametrization values are not all known at collection time.Example:
def contains_docstring(p: Path) -> bool: """Return True if the given Python file contains a top-level docstring.""" ... def test_py_files_contain_docstring(subtests: pytest.Subtests) -> None: for path in Path.cwd().glob("*.py"): with subtests.test(path=str(path)): assert contains_docstring(path)Each assert failure or error is caught by the context manager and reported individually, giving a clear picture of all files that are missing a docstring.
In addition,
unittest.TestCase.subTestis now also supported.This feature was originally implemented as a separate plugin in pytest-subtests, but since then has been merged into the core.
[!NOTE] This feature is experimental and will likely evolve in future releases. By that we mean that we might change how subtests are reported on failure, but the functionality and how to use it are stable.
#13743: Added support for native TOML configuration files.
While pytest, since version 6, supports configuration in
pyproject.tomlfiles under[tool.pytest.ini_options], it does so in an "INI compatibility mode", where all configuration values are treated as strings or list of strings. Now, pytest supports the native TOML data model.In
pyproject.toml, the native TOML configuration is under the[tool.pytest]table.# pyproject.toml [tool.pytest] minversion = "9.0" addopts = ["-ra", "-q"] testpaths = [ "tests", "integration", ]
... (truncated)
Commits
-
f4b0fd2Prepare release version 9.0.0 -
52d8e68Merge pull request #13889 from bluetech/regendoc-restore -
d6d3e4adoc: fixes for regendoc -
7cb3974doc: restore missing "# content of pytest.toml" regendoc commands -
5ae9e47build(deps): Bump django in /testing/plugins_integration (#13881) -
adb3658Merge pull request #13864 from bluetech/config-cleanups-2 -
a28c08eMerge pull request #13875 from bluetech/ci-tweaks -
a250954ci: split publish-to-pypi and push-tag jobs -
ebc152fci: update setup python's from 3.11 or 3.* to 3.13 -
dfd796fci: move running update-plugin-list script to tox - Additional commits viewable in compare view