diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9dd76c9f816..6b70abd2985 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ minimum_pre_commit_version: "4.4.0" repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.14.5" + rev: "v0.14.6" hooks: - id: ruff-check args: ["--fix"] @@ -74,7 +74,7 @@ repos: # https://pyproject-fmt.readthedocs.io/en/latest/#calculating-max-supported-python-version additional_dependencies: ["tox>=4.9"] - repo: https://github.com/asottile/pyupgrade - rev: v3.21.1 + rev: v3.21.2 hooks: - id: pyupgrade args: diff --git a/src/_pytest/subtests.py b/src/_pytest/subtests.py index e0ceb27f4b1..a96b11f1fe4 100644 --- a/src/_pytest/subtests.py +++ b/src/_pytest/subtests.py @@ -353,7 +353,7 @@ def pytest_report_from_serializable(data: dict[str, Any]) -> SubtestReport | Non def pytest_configure(config: Config) -> None: - config.stash[failed_subtests_key] = defaultdict(lambda: 0) + config.stash[failed_subtests_key] = defaultdict(int) @hookimpl(tryfirst=True)