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

Method statement

src/_pytest/_code/code.py:158–162  ·  view source on GitHub ↗

Statement this frame is at.

(self)

Source from the content-addressed store, hash-verified

156
157 @property
158 def statement(self) -> Source:
159 """Statement this frame is at."""
160 if self.code.fullsource is None:
161 return Source("")
162 return self.code.fullsource.getstatement(self.lineno)
163
164 def eval(self, code, **vars):
165 """Evaluate 'code' in the frame.

Callers

nothing calls this directly

Calls 2

SourceClass · 0.90
getstatementMethod · 0.80

Tested by

no test coverage detected