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,7 +55,8 @@ class TestResult(unittest.TextTestResult):
|
||||
if self.wasSuccessful():
|
||||
tests = sorted(self.times, key=self.times.get, reverse=True)
|
||||
slowest = ['%s [%g s]' % (t.id(), self.times[t]) for t in tests[:3]]
|
||||
self.stream.writeln('\nSlowest tests: %s' % ' '.join(slowest))
|
||||
if len(slowest) > 1:
|
||||
self.stream.writeln('\nSlowest tests: %s' % ' '.join(slowest))
|
||||
|
||||
def find_tests():
|
||||
return unittest.defaultTestLoader.discover(os.path.dirname(os.path.abspath(__file__)), pattern='*.py')
|
||||
|
Loading…
x
Reference in New Issue
Block a user