Skip to content

Commit 19dd17d

Browse files
refer the node-from-parent deprecation documentation in the warning
1 parent 39d9f7c commit 19dd17d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/_pytest/deprecated.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636

3737
NODE_USE_FROM_PARENT = UnformattedWarning(
3838
PytestDeprecationWarning,
39-
"direct construction of {name} has been deprecated, please use {name}.from_parent",
39+
"direct construction of {name} has been deprecated, please use {name}.from_parent\n"
40+
"for more details see "
41+
"https://docs.pytest.org/en/latest/deprecations.html#node-construction-changed-to-node-from-parent",
4042
)
4143

4244
JUNIT_XML_DEFAULT_FAMILY = PytestDeprecationWarning(

0 commit comments

Comments
 (0)