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

Function test_code_from_func

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

Source from the content-addressed store, hash-verified

77
78
79def test_code_from_func() -> None:
80 co = Code.from_function(test_frame_getsourcelineno_myself)
81 assert co.firstlineno
82 assert co.path
83
84
85def test_unicode_handling() -> None:

Callers

nothing calls this directly

Calls 1

from_functionMethod · 0.80

Tested by

no test coverage detected