Merge pull request #5123 from blueyed/clsname

TestReport: use class name in repr
This commit is contained in:
Bruno Oliveira 2019-04-15 11:25:42 -03:00 committed by GitHub
commit d45fa7b212
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -328,7 +328,8 @@ class TestReport(BaseReport):
self.__dict__.update(extra) self.__dict__.update(extra)
def __repr__(self): def __repr__(self):
return "<TestReport %r when=%r outcome=%r>" % ( return "<%s %r when=%r outcome=%r>" % (
self.__class__.__name__,
self.nodeid, self.nodeid,
self.when, self.when,
self.outcome, self.outcome,