tests/run: fix log message formatting
This commit is contained in:
parent
3e725efe15
commit
5a9c390485
@ -146,7 +146,7 @@ class QubesTestResult(unittest.TestResult):
|
|||||||
|
|
||||||
def addFailure(self, test, err): # pylint: disable=invalid-name
|
def addFailure(self, test, err): # pylint: disable=invalid-name
|
||||||
super(QubesTestResult, self).addFailure(test, err)
|
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:
|
if self.showAll:
|
||||||
self.stream.writeln('{color[red]}FAIL{color[normal]}'.format(
|
self.stream.writeln('{color[red]}FAIL{color[normal]}'.format(
|
||||||
color=self.color))
|
color=self.color))
|
||||||
|
Loading…
Reference in New Issue
Block a user