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

Function func

testing/code/test_code.py:61–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59
60def test_frame_getsourcelineno_myself() -> None:
61 def func() -> FrameType:
62 return sys._getframe(0)
63
64 f = Frame(func())
65 source, lineno = f.code.fullsource, f.lineno

Calls

no outgoing calls

Tested by

no test coverage detected