kikocis/auto-code-rover public
| 1 | diff --git a/src/_pytest/_io/saferepr.py b/src/_pytest/_io/saferepr.py |
| 2 | --- a/src/_pytest/_io/saferepr.py |
| 3 | +++ b/src/_pytest/_io/saferepr.py |
| 4 | @@ -20,7 +20,7 @@ def _format_repr_exception(exc: BaseException, obj: Any) -> str: |
| 5 | except BaseException as exc: |
| 6 | exc_info = "unpresentable exception ({})".format(_try_repr_or_str(exc)) |
| 7 | return "<[{} raised in repr()] {} object at 0x{:x}>".format( |
| 8 | - exc_info, obj.__class__.__name__, id(obj) |
| 9 | + exc_info, type(obj).__name__, id(obj) |
| 10 | ) |
| 11 | |
| 12 |