MCPcopy Create free account
hub / github.com/pytest-dev/pytest / location

Method location

src/_pytest/nodes.py:740–745  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

738
739 @cached_property
740 def location(self) -> Tuple[str, Optional[int], str]:
741 location = self.reportinfo()
742 path = absolutepath(os.fspath(location[0]))
743 relfspath = self.session._node_location_to_relpath(path)
744 assert type(location[2]) is str
745 return (relfspath, location[1], location[2])

Callers

nothing calls this directly

Calls 4

reportinfoMethod · 0.95
absolutepathFunction · 0.90
fspathMethod · 0.80

Tested by

no test coverage detected