diff --git a/src/_pytest/nodes.py b/src/_pytest/nodes.py index 3bb10ee89..e9ee74b1a 100644 --- a/src/_pytest/nodes.py +++ b/src/_pytest/nodes.py @@ -346,6 +346,7 @@ def get_fslocation_from_item(item): """Tries to extract the actual location from an item, depending on available attributes: * "fslocation": a pair (path, lineno) + * "obj": a Python object that the item wraps. * "fspath": just a path :rtype: a tuple of (str|LocalPath, int) with filename and line number.