Test get_real_func handles partial instances correctly
()
| 69 | |
| 70 | |
| 71 | def 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 | |
| 81 | class ErrorsHelper: |
nothing calls this directly
no test coverage detected