Skip to content

0.6.4.2: token lifetime test under pytest 9.2 - #44

Merged
fstwn merged 1 commit into
mainfrom
v-0.6.4.2
Oct 29, 2026
Merged

fstwn merged 1 commit into
mainfrom
v-0.6.4.2

Conversation

@fstwn

@fstwn fstwn commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Since pytest 9.2.0, monkeypatch.setattr undo deletes attributes that are not in the instance dict; Starlette's State keeps its own, so CI failed on the v0.6.4.2 tag. The test now restores the value itself. tests/api passes under pytest 9.2.0 with -n auto.

Since pytest 9.2.0, monkeypatch.setattr restores only what was in the
instance __dict__; Starlette's State keeps its values in _state, so the undo
deleted gh_token_minutes and the next test on the same worker failed in CI.
@fstwn
fstwn merged commit 70da1fa into main Oct 29, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant