summaryrefslogtreecommitdiff
path: root/src/_pytest/deprecated.py
diff options
context:
space:
mode:
authorRonny Pfannschmidt <opensource@ronnypfannschmidt.de>2020-02-06 00:00:02 +0100
committerRonny Pfannschmidt <opensource@ronnypfannschmidt.de>2020-03-01 20:33:46 +0100
commit3d390940d1ad895527486ea69fd06d68732b677b (patch)
tree060d5d141756686d5fe8179609d4a02af7afd0fa /src/_pytest/deprecated.py
parent5fc80d8bc37b074af9c5fbcb571e4759c052a4be (diff)
downloadpytest-3d390940d1ad895527486ea69fd06d68732b677b.tar.gz
refer the node-from-parent deprecation documentation in the warning
fixup: fix test for warning
Diffstat (limited to 'src/_pytest/deprecated.py')
-rw-r--r--src/_pytest/deprecated.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/_pytest/deprecated.py b/src/_pytest/deprecated.py
index db43c6ca3..cd9ed97d8 100644
--- a/src/_pytest/deprecated.py
+++ b/src/_pytest/deprecated.py
@@ -36,7 +36,10 @@ FIXTURE_POSITIONAL_ARGUMENTS = PytestDeprecationWarning(
NODE_USE_FROM_PARENT = UnformattedWarning(
PytestDeprecationWarning,
- "direct construction of {name} has been deprecated, please use {name}.from_parent",
+ "Direct construction of {name} has been deprecated, please use {name}.from_parent.\n"
+ "See "
+ "https://docs.pytest.org/en/latest/deprecations.html#node-construction-changed-to-node-from-parent"
+ " for more details.",
)
JUNIT_XML_DEFAULT_FAMILY = PytestDeprecationWarning(