From 5a9c390485bf8707b3e55c3387416eab17fc13ea Mon Sep 17 00:00:00 2001 From: Wojtek Porczyk Date: Thu, 19 Feb 2015 17:35:56 +0100 Subject: [PATCH] tests/run: fix log message formatting --- tests/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/run.py b/tests/run.py index 1bd6c2fc..a141eed6 100755 --- a/tests/run.py +++ b/tests/run.py @@ -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))