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

Method statement

src/_pytest/_code/code.py:267–271  ·  view source on GitHub ↗

_pytest._code.Source object for the current statement.

(self)

Source from the content-addressed store, hash-verified

265
266 @property
267 def statement(self) -> Source:
268 """_pytest._code.Source object for the current statement."""
269 source = self.frame.code.fullsource
270 assert source is not None
271 return source.getstatement(self.lineno)
272
273 @property
274 def path(self) -> Path | str:

Callers

nothing calls this directly

Calls 1

getstatementMethod · 0.80

Tested by

no test coverage detected