feat: use repr for pytest fixtures
This commit is contained in:
parent
f426c0b35a
commit
7fd947167d
|
@ -462,7 +462,7 @@ def _format_assertmsg(obj: object) -> str:
|
|||
|
||||
def _should_repr_global_name(obj: object) -> bool:
|
||||
if callable(obj):
|
||||
return False
|
||||
return hasattr(obj, "__pytest_wrapped__")
|
||||
|
||||
try:
|
||||
return not hasattr(obj, "__name__")
|
||||
|
|
Loading…
Reference in New Issue