Skip to content

Commit f26e719

Browse files
RonnyPfannschmidtCursor AIclaude
committed
doc: add changelog fragments for #14004
Co-authored-by: Cursor AI <ai@cursor.sh> Co-authored-by: Anthropic Claude Opus 4 <claude@anthropic.com>
1 parent b03896b commit f26e719

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

changelog/14004.bugfix.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Fixed conftest.py fixture scoping when ``testpaths`` points outside ``rootdir``.
2+
3+
Previously, fixtures from nested conftest.py files would incorrectly leak to sibling directories
4+
when using a relative ``testpaths`` like ``../tests/sdk``.
5+
6+
Conftest fixtures are now parsed during Directory collection, using the Directory node's
7+
nodeid for proper scoping.

changelog/14004.deprecation.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Passing ``baseid`` to :class:`~pytest.FixtureDef` or ``nodeid`` strings to fixture registration
2+
APIs is now deprecated.
3+
4+
Use the ``node`` parameter instead for fixture scoping. This enables more robust node-based
5+
matching instead of string prefix matching.
6+
7+
This will be removed in pytest 10.

0 commit comments

Comments
 (0)