Increase stacklevel to point at user's code (#9869)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
045dbc895d
commit
5800d39053
|
@ -0,0 +1,2 @@
|
||||||
|
Increase ``stacklevel`` for the ``NODE_CTOR_FSPATH_ARG`` deprecation to point to the
|
||||||
|
user's code, not pytest.
|
|
@ -111,7 +111,7 @@ def _imply_path(
|
||||||
NODE_CTOR_FSPATH_ARG.format(
|
NODE_CTOR_FSPATH_ARG.format(
|
||||||
node_type_name=node_type.__name__,
|
node_type_name=node_type.__name__,
|
||||||
),
|
),
|
||||||
stacklevel=3,
|
stacklevel=6,
|
||||||
)
|
)
|
||||||
if path is not None:
|
if path is not None:
|
||||||
if fspath is not None:
|
if fspath is not None:
|
||||||
|
|
Loading…
Reference in New Issue