Mercurial > lcfOS
annotate test/grind.py @ 303:be7f60545368
Final fixups
author | Windel Bouwman |
---|---|
date | Fri, 06 Dec 2013 12:37:48 +0100 |
parents | 1c7c1e619be8 |
children | e609d5296ee9 |
rev | line source |
---|---|
303 | 1 #!/usr/bin/python |
245 | 2 |
3 import cProfile | |
4 import unittest | |
5 import pstats | |
6 | |
7 if __name__ == '__main__': | |
8 suite = unittest.TestLoader().discover('.') | |
9 def runtests(): | |
10 unittest.TextTestRunner().run(suite) | |
261 | 11 #s = cProfile.run('runtests()',sort='cumtime') |
12 s = cProfile.run('runtests()',sort='tottime') | |
245 | 13 |