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

Function test_code_from_func

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

from_functionMethod · 0.80

Tested by

no test coverage detected