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

Function func

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

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls

Tested by

no test coverage detected