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

Function test_get_real_func_partial

testing/test_compat.py:71–78  ·  view source on GitHub ↗

Test get_real_func handles partial instances correctly

()

Source from the content-addressed store, hash-verified

69
70
71def test_get_real_func_partial() -> None:
72 """Test get_real_func handles partial instances correctly"""
73
74 def foo(x):
75 return x
76
77 assert get_real_func(foo) is foo
78 assert get_real_func(partial(foo)) is foo
79
80
81class ErrorsHelper:

Callers

nothing calls this directly

Calls 1

get_real_funcFunction · 0.90

Tested by

no test coverage detected