We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b03896b commit f26e719Copy full SHA for f26e719
2 files changed
changelog/14004.bugfix.rst
@@ -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
+Passing ``baseid`` to :class:`~pytest.FixtureDef` or ``nodeid`` strings to fixture registration
+APIs is now deprecated.
+Use the ``node`` parameter instead for fixture scoping. This enables more robust node-based
+matching instead of string prefix matching.
+This will be removed in pytest 10.
0 commit comments