Mercurial > lcfOS
diff test/grind.py @ 323:e9fe6988497c
Used burg for generating expressions
author | Windel Bouwman |
---|---|
date | Thu, 30 Jan 2014 19:03:24 +0100 |
parents | ff665880a6b0 |
children | 39bf68bf1891 |
line wrap: on
line diff
--- a/test/grind.py Mon Jan 27 19:58:07 2014 +0100 +++ b/test/grind.py Thu Jan 30 19:03:24 2014 +0100 @@ -6,9 +6,16 @@ import sys import os +p = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'python') +sys.path.insert(0, p) + if __name__ == '__main__': suite = unittest.TestLoader().discover('.') def runtests(): unittest.TextTestRunner().run(suite) #s = cProfile.run('runtests()',sort='cumtime') - s = cProfile.run('runtests()',sort='tottime') + p = cProfile.Profile() + s = p.run('runtests()') + stats = pstats.Stats(p) + stats.sort_stats('tottime') + stats.print_stats(.1)