Skip to content

Fix pytest >= 9.1 compatibility#6072

Closed
hrnciar wants to merge 1 commit into
pallets:mainfrom
hrnciar:patch-2
Closed

Fix pytest >= 9.1 compatibility#6072
hrnciar wants to merge 1 commit into
pallets:mainfrom
hrnciar:patch-2

Conversation

@hrnciar

@hrnciar hrnciar commented Jul 2, 2026

Copy link
Copy Markdown

pytest 9.1 removed the private notset sentinel from _pytest.monkeypatch (now NOTSET in _pytest.compat). Add compatibility shim in tests/test_cli.py

Assisted-by: Claude Opus 4.6

fixes #6071

pytest 9.1 removed the private `notset` sentinel from `_pytest.monkeypatch` (now `NOTSET` in `_pytest.compat`).
Add compatibility shim in tests/test_cli.py

Fixes: pallets#6071

Assisted-by: Claude Opus 4.6
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.

Tests fail with pytest 9.1: _pytest.monkeypatch.notset removed

2 participants