Mercurial > mozilla > hg > ProfileManager
annotate profilemanager/tests/test.py @ 28:d4f0c1c4d0eb
all that fuss over a missing "s"
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 06 May 2010 16:48:43 -0700 |
parents | 5988a15da3b4 |
children | 6f2ad307fdda |
rev | line source |
---|---|
12 | 1 #!/usr/bin/env python |
2 | |
3 """ | |
4 doctest runner | |
5 """ | |
6 | |
7 import doctest | |
8 import os | |
9 | |
10 def run_tests(): | |
11 directory = os.path.dirname(os.path.abspath(__file__)) | |
12 tests = [ test for test in os.listdir(directory) | |
13 if test.endswith('.txt') ] | |
14 | |
15 for test in tests: | |
28
d4f0c1c4d0eb
all that fuss over a missing "s"
Jeff Hammel <jhammel@mozilla.com>
parents:
27
diff
changeset
|
16 doctest.testfile(test) |
12 | 17 |
18 if __name__ == '__main__': | |
19 run_tests() | |
27
5988a15da3b4
things are being awful; checking in anyway
Jeff Hammel <jhammel@mozilla.com>
parents:
12
diff
changeset
|
20 |