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

Function test_get_real_func_partial

testing/test_compat.py:84–91  ·  view source on GitHub ↗

Test get_real_func handles partial instances correctly

()

Source from the content-addressed store, hash-verified

82
83
84def test_get_real_func_partial() -> None:
85 """Test get_real_func handles partial instances correctly"""
86
87 def foo(x):
88 return x
89
90 assert get_real_func(foo) is foo
91 assert get_real_func(partial(foo)) is foo
92
93
94def test_is_generator_asyncio(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 1

get_real_funcFunction · 0.90

Tested by

no test coverage detected