Mercurial > hg > WSGraph
comparison tests/test.py @ 29:2e4ed8e0a103
passing pretend tests
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 13 Dec 2012 18:05:39 -0800 |
parents | cfcfa093e4b4 |
children | 6a92eeace612 |
comparison
equal
deleted
inserted
replaced
28:4bed1424bb3f | 29:2e4ed8e0a103 |
---|---|
17 | 17 |
18 # doctest arguments | 18 # doctest arguments |
19 directory = os.path.dirname(os.path.abspath(__file__)) | 19 directory = os.path.dirname(os.path.abspath(__file__)) |
20 extraglobs = {'here': directory} | 20 extraglobs = {'here': directory} |
21 doctest_args = dict(extraglobs=extraglobs, raise_on_error=raise_on_error) | 21 doctest_args = dict(extraglobs=extraglobs, raise_on_error=raise_on_error) |
22 doctest_args['optionsflags'] = doctest.ELLIPSIS | |
23 if report_first: | |
24 doctest_args['optionflags'] |= doctest.REPORT_ONLY_FIRST_FAILURE | |
25 | 22 |
26 # gather tests | 23 # gather tests |
27 tests = [test for test in os.listdir(directory) | 24 tests = [test for test in os.listdir(directory) |
28 if test.endswith('.txt')] | 25 if test.endswith('.txt')] |
29 | 26 |