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

Method __init__

testing/code/test_source.py:222–224  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

220def test_getstartingblock_singleline() -> None:
221 class A:
222 def __init__(self, *args) -> None:
223 frame = sys._getframe(1)
224 self.source = Frame(frame).statement
225
226 x = A("x", "y")
227

Callers

nothing calls this directly

Calls 1

FrameClass · 0.90

Tested by

no test coverage detected