Skip to content

Commit

Permalink
Increase stacklevel to point at user's code
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Apr 20, 2022
1 parent 045dbc8 commit daf72ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_pytest/nodes.py
Expand Up @@ -111,7 +111,7 @@ def _imply_path(
NODE_CTOR_FSPATH_ARG.format(
node_type_name=node_type.__name__,
),
stacklevel=3,
stacklevel=6,
)
if path is not None:
if fspath is not None:
Expand Down

0 comments on commit daf72ba

Please sign in to comment.