MCPcopy
hub / github.com/pytest-dev/pytest / module

Method module

src/_pytest/python.py:264–267  ·  view source on GitHub ↗

Python module object this node was collected from (can be None).

(self)

Source from the content-addressed store, hash-verified

262
263 @property
264 def module(self):
265 """Python module object this node was collected from (can be None)."""
266 node = self.getparent(Module)
267 return node.obj if node is not None else None
268
269 @property
270 def cls(self):

Callers

nothing calls this directly

Calls 1

getparentMethod · 0.80

Tested by

no test coverage detected