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

Function test_code_from_function_with_class

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

Source from the content-addressed store, hash-verified

32
33
34def test_code_from_function_with_class() -> None:
35 class A:
36 pass
37
38 with pytest.raises(TypeError):
39 Code.from_function(A)
40
41
42def x() -> None:

Callers

nothing calls this directly

Calls 1

from_functionMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…