feat: use repr for pytest fixtures

This commit is contained in:
Glyphack 2024-06-18 12:24:48 +02:00
parent f426c0b35a
commit 7fd947167d
1 changed files with 1 additions and 1 deletions

View File

@ -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__")