Show fullname on direct Node construction warning
This commit add the fullname on the Node construction warning. Also add a test for this case.
This commit is contained in:
@@ -123,7 +123,7 @@ class NodeMeta(type):
|
||||
"See "
|
||||
"https://docs.pytest.org/en/stable/deprecations.html#node-construction-changed-to-node-from-parent"
|
||||
" for more details."
|
||||
).format(name=self.__name__)
|
||||
).format(name=f"{self.__module__}.{self.__name__}")
|
||||
fail(msg, pytrace=False)
|
||||
|
||||
def _create(self, *k, **kw):
|
||||
|
||||
Reference in New Issue
Block a user