Skip to content

Commit 1d367e2

Browse files
committed
test: every fixture lives in the root conftests and a gate test fails if a nested conftest defines one, so pytest 9.1.1 (pytest-dev/pytest#14971) cannot drop a fixture; the pin below 9 is lifted, the directory-scoped autouse fixtures gate on the test path, and the straddle-overlap override no longer requests monkeypatch so fixture teardown order matches the pre-migration tree
1 parent 290740c commit 1d367e2

19 files changed

Lines changed: 773 additions & 733 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Public redaction helpers, ReDoS validator latency, phantom ban, singleton resets
2424
### Changed
2525

2626
- **v4.0.0 changelog correction.** Proxy identity headers skip only the `ssrf` category for IP-shaped values; every other category still scans them. Corrected in place below.
27-
- **Dev dependency `pytest` pinned below 9** until pytest-dev/pytest#14971 (nested conftest fixtures dropped when file arguments interleave a nested directory with its parent) ships fixed.
27+
- **Dev dependency `pytest` on 9.x.** Every fixture lives in the root conftest and a gate test fails if a nested conftest defines one, so pytest-dev/pytest#14971 cannot drop a fixture.
2828
- **The live-smoke driver clears only its own `smoke:` keys** instead of flushing the whole Redis database.
2929

3030
### Fixed

‎docs/release-notes.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Public redaction helpers, ReDoS validator latency, phantom ban, singleton resets
2424
### Changed
2525

2626
- **v4.0.0 changelog correction.** Proxy identity headers skip only the `ssrf` category for IP-shaped values; every other category still scans them. Corrected in place below.
27-
- **Dev dependency `pytest` pinned below 9** until pytest-dev/pytest#14971 (nested conftest fixtures dropped when file arguments interleave a nested directory with its parent) ships fixed.
27+
- **Dev dependency `pytest` on 9.x.** Every fixture lives in the root conftest and a gate test fails if a nested conftest defines one, so pytest-dev/pytest#14971 cannot drop a fixture.
2828
- **The live-smoke driver clears only its own `smoke:` keys** instead of flushing the whole Redis database.
2929

3030
### Fixed

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ dev = [
4646
"pip-audit",
4747
"pre-commit",
4848
"pymarkdownlnt",
49-
"pytest<9",
49+
"pytest",
5050
"pytest-asyncio",
5151
"pytest-cov",
5252
"pytest-mock",

‎scripts/unasync.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"test_gc_per_test_opt_in.py",
3333
"test_maintainability_rank.py",
3434
"test_config_docs_parity.py",
35+
"test_nested_conftest_defines_no_fixtures.py",
3536
}
3637

3738
SKIP_DIRS = {"__pycache__", "sync"}
@@ -72,7 +73,6 @@
7273
TEST_SYNC_DIR / "test_utils" / "test_block_events_sync_rejection.py",
7374
TEST_SYNC_DIR / "test_core" / "test_auth_verifier_sync_async_rejection.py",
7475
TEST_SYNC_DIR / "conftest.py",
75-
TEST_SYNC_DIR / "test_sus_patterns" / "conftest.py",
7676
TEST_SYNC_DIR / "test_sus_patterns" / "test_sus_patterns.py",
7777
TEST_SYNC_DIR / "test_otel_handler_provider_lifecycle.py",
7878
TEST_SYNC_DIR / "test_logfire_handler_provider_lifecycle.py",

0 commit comments

Comments
 (0)