tests/run: fix log message formatting

This commit is contained in:
Wojtek Porczyk 2015-02-19 17:35:56 +01:00
parent 3e725efe15
commit 5a9c390485

View File

@ -146,7 +146,7 @@ class QubesTestResult(unittest.TestResult):
def addFailure(self, test, err): # pylint: disable=invalid-name
super(QubesTestResult, self).addFailure(test, err)
test.log.error('FAIL ({err[0]!s}: {err[1]!r})'.format(err=err))
test.log.error('FAIL ({err[0].__name__}: {err[1]!r})'.format(err=err))
if self.showAll:
self.stream.writeln('{color[red]}FAIL{color[normal]}'.format(
color=self.color))