diff --git a/src/_pytest/nodes.py b/src/_pytest/nodes.py index e77525212..6e8454ad7 100644 --- a/src/_pytest/nodes.py +++ b/src/_pytest/nodes.py @@ -146,8 +146,9 @@ class NodeMeta(type): warnings.warn( PytestDeprecationWarning( f"{self} is not using a cooperative constructor and only takes {set(known_kw)}.\n" - "See https://docs.pytest.org/en/stable/deprecations.html#constructors-of-custom-pytest-node-subclasses-should-take-kwargs" - " for more details." + "See https://docs.pytest.org/en/stable/deprecations.html" + "#constructors-of-custom-pytest-node-subclasses-should-take-kwargs " + "for more details." ) )