10BC0
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.
2 parents 0ec5886 + ddbb998 commit 6d75333Copy full SHA for 6d75333
changelog/9869.bugfix.rst
@@ -0,0 +1,2 @@
1
+Increase ``stacklevel`` for the ``NODE_CTOR_FSPATH_ARG`` deprecation to point to the
2
+user's code, not pytest.
src/_pytest/nodes.py
@@ -111,7 +111,7 @@ def _imply_path(
111
NODE_CTOR_FSPATH_ARG.format(
112
node_type_name=node_type.__name__,
113
),
114
- stacklevel=3,
+ stacklevel=6,
115
)
116
if path is not None:
117
if fspath is not None:
0 commit comments