From 1b912c141da2ccc993de83c33556000c049a325c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 24 Nov 2025 21:21:32 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.14.5 → v0.14.6](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.5...v0.14.6) - [github.com/asottile/pyupgrade: v3.21.1 → v3.21.2](https://github.com/asottile/pyupgrade/compare/v3.21.1...v3.21.2) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: From f34636619e2111cafd64b5fe29db9a6d1936ce84 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Mon, 24 Nov 2025 22:56:33 +0100 Subject: [PATCH 2/2] Apply automated pyupgrade modification --- src/_pytest/subtests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)