Skip to content

Commit c4b6c93

Browse files
fixup: from_parent warning punctuation/order
1 parent 37d560b commit c4b6c93

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/_pytest/deprecated.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@
3636

3737
NODE_USE_FROM_PARENT = UnformattedWarning(
3838
PytestDeprecationWarning,
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",
39+
"Direct construction of {name} has been deprecated, please use {name}.from_parent.\n"
40+
"See "
41+
"https://docs.pytest.org/en/latest/deprecations.html#node-construction-changed-to-node-from-parent"
42+
" for more details.",
4243
)
4344

4445
JUNIT_XML_DEFAULT_FAMILY = PytestDeprecationWarning(

0 commit comments

Comments
 (0)