Mercurial > hg > MakeItSo
comparison examples/test.py @ 40:6b4c8f23192f
test and fix mixed output case
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sun, 02 Jan 2011 00:48:58 -0800 |
parents | 7e47ff4b0cd3 |
children |
comparison
equal
deleted
inserted
replaced
39:a2cdce0108e1 | 40:6b4c8f23192f |
---|---|
10 def run_tests(): | 10 def run_tests(): |
11 directory = os.path.dirname(os.path.abspath(__file__)) | 11 directory = os.path.dirname(os.path.abspath(__file__)) |
12 extraglobs = {'here': directory} | 12 extraglobs = {'here': directory} |
13 tests = [ 'doctest.txt' ] | 13 tests = [ 'doctest.txt' ] |
14 for test in tests: | 14 for test in tests: |
15 doctest.testfile(test, extraglobs=extraglobs, raise_on_error=False) | 15 doctest.testfile(test, |
16 optionflags=doctest.ELLIPSIS, | |
17 extraglobs=extraglobs, | |
18 raise_on_error=False) | |
16 | 19 |
17 if __name__ == '__main__': | 20 if __name__ == '__main__': |
18 run_tests() | 21 run_tests() |