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

Function test_code_from_function_with_class

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

from_functionMethod · 0.80

Tested by

no test coverage detected