Skip to content

Don't define class-scoped fixtures as instance methods - #1207

Open
cjwatson wants to merge 1 commit into
python-openapi:masterfrom
cjwatson:pytest-9.1
Open

Don't define class-scoped fixtures as instance methods#1207
cjwatson wants to merge 1 commit into
python-openapi:masterfrom
cjwatson:pytest-9.1

Conversation

@cjwatson

Copy link
Copy Markdown

This is deprecated as of pytest 9.1; see
https://docs.pytest.org/en/stable/deprecations.html#class-scoped-fixture-as-instance-method.

(Note that it isn't currently possible to bump this dependency in poetry.lock due to coherent-oss/pytest-flake8#5. I don't think that needs to block this PR, though.)

felixonmars added a commit to felixonmars/archriscv-packages that referenced this pull request Sep 6, 2026
Use python-httpx2 in checkdepends to avoid Starlette's httpx fallback
warning being treated as an error during test collection.

Backport the shared default-server fix for jsonschema-path 0.5's
accessor identity checks, which break six path-finder tests. Convert
class-scoped fixtures to class methods for pytest 9.1, fixing twelve
test setup errors without suppressing warnings.

Upstream: https://gitlab.archlinux.org/archlinux/packaging/packages/python-openapi-core/-/work_items/6
Upstream: python-openapi/openapi-core#1189
Upstream: python-openapi/openapi-core#1207
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