mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
50ce1c08af
commit
1ea50f3d40
@ -55,6 +55,7 @@ class TestResult(unittest.TextTestResult):
|
|||||||
if self.wasSuccessful():
|
if self.wasSuccessful():
|
||||||
tests = sorted(self.times, key=self.times.get, reverse=True)
|
tests = sorted(self.times, key=self.times.get, reverse=True)
|
||||||
slowest = ['%s [%g s]' % (t.id(), self.times[t]) for t in tests[:3]]
|
slowest = ['%s [%g s]' % (t.id(), self.times[t]) for t in tests[:3]]
|
||||||
|
if len(slowest) > 1:
|
||||||
self.stream.writeln('\nSlowest tests: %s' % ' '.join(slowest))
|
self.stream.writeln('\nSlowest tests: %s' % ' '.join(slowest))
|
||||||
|
|
||||||
def find_tests():
|
def find_tests():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user