Files
app-store-optimization/skills/loki-mode/benchmarks/results/2026-01-05-10-37-54/swebench-loki-patches/pytest-dev__pytest-7168.patch

14 lines
455 B
Diff

# pytest-dev__pytest-7168
# Loki Mode Multi-Agent Patch
# Attempts: 1
--- a/src/_pytest/_io/saferepr.py
+++ b/src/_pytest/_io/saferepr.py
@@ -20,7 +20,7 @@ def _format_repr_exception(exc: BaseException, obj: object) -> str:
exc_info = "unknown"
return (
"<[{} raised in repr()] {} object at 0x{:x}>".format(
- exc_info, obj.__class__.__name__, id(obj)
+ exc_info, type(obj).__name__, id(obj)
)
)