Add yappi profiling to tests/__main__.py

This commit is contained in:
Stein Magnus Jodal 2011-09-24 19:09:05 +02:00
parent 4438d6f42f
commit 808b9e026a
2 changed files with 6 additions and 1 deletions

View File

@ -2,3 +2,4 @@ coverage
mock >= 0.7
nose
tox
yappi

View File

@ -1,4 +1,8 @@
import nose
import yappi
if __name__ == '__main__':
try:
yappi.start()
nose.main()
finally:
yappi.print_stats()