Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytest-dev/pytest
/ getimfunc
Function
getimfunc
src/_pytest/compat.py:310–314 ·
view source on GitHub ↗
(func)
Source
from the content-addressed store, hash-verified
308
309
310
def
getimfunc(func):
311
try
:
312
return
func.__func__
313
except
AttributeError:
314
return
func
315
316
317
def
safe_getattr(object: Any, name: str, default: Any) -> Any:
Callers
4
xunit_setup_class_fixture
Method · 0.90
function
Method · 0.90
resolve_fixture_function
Function · 0.90
collect
Method · 0.90
Calls
no outgoing calls
Tested by
1
collect
Method · 0.72