diff --git a/src/_pytest/reports.py b/src/_pytest/reports.py index d2df4d21f..97699cfc1 100644 --- a/src/_pytest/reports.py +++ b/src/_pytest/reports.py @@ -328,7 +328,8 @@ class TestReport(BaseReport): self.__dict__.update(extra) def __repr__(self): - return "" % ( + return "<%s %r when=%r outcome=%r>" % ( + self.__class__.__name__, self.nodeid, self.when, self.outcome,