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:
|
def _should_repr_global_name(obj: object) -> bool:
|
||||||
if callable(obj):
|
if callable(obj):
|
||||||
return False
|
return hasattr(obj, "__pytest_wrapped__")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
return not hasattr(obj, "__name__")
|
return not hasattr(obj, "__name__")
|
||||||
|
|
Loading…
Reference in New Issue