From e7b877d948156d56f5ec2c1f8ae2fa88c8ac5617 Mon Sep 17 00:00:00 2001 From: georgiedekker Date: Sat, 14 Nov 2026 09:49:00 +0100 Subject: [PATCH] chore(deps): hold pytest below 9.2 with the reason recorded pytest 9.2 breaks every test that monkeypatches a pydantic PrivateAttr on Settings: monkeypatch's undo calls pydantic's __delattr__, which raises when the key is not in __pydantic_private__. Reproduced on #9's tree: 53 passed on 9.1.1, 1 passed + 52 errors on 9.2.0, all in the autouse _clean fixture (tests/unit/test_sandbox_org.py). An ignore keeps the bump from reopening every week. The real fix, when someone wants 9.2, is in that module's _patch_all(): set and restore through obj.__pydantic_private__ instead of monkeypatch.setattr. Co-Authored-By: Claude Code --- .github/dependabot.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 93d692a..b3c231e 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -14,6 +14,13 @@ updates: update-types: ["minor", "patch"] ignore: - dependency-name: ty + # pytest 9.2 breaks every test that monkeypatches a pydantic PrivateAttr on Settings: + # the monkeypatch undo calls pydantic's __delattr__, which raises when the key is not in + # __pydantic_private__ (reproduced: 53 passed on 9.1.1, 52 errors on 9.2.0 in + # tests/unit/test_sandbox_org.py). Lift this once _patch_all() sets and restores through + # obj.__pydantic_private__ instead of monkeypatch.setattr. + - dependency-name: pytest + versions: [">=9.2"] - package-ecosystem: github-actions directory: "/" schedule: