Mercurial > hg > carton
comparison tests/test.py @ 10:d1f090c5f291
lets make some more tests
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Fri, 08 Jul 2011 13:23:47 -0700 |
parents | 7ea2b5f12b2d |
children |
comparison
equal
deleted
inserted
replaced
9:aa673036ecc1 | 10:d1f090c5f291 |
---|---|
15 # add results here | 15 # add results here |
16 results = {} | 16 results = {} |
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 'python': sys.executable} | |
21 doctest_args = dict(extraglobs=extraglobs, raise_on_error=raise_on_error) | 22 doctest_args = dict(extraglobs=extraglobs, raise_on_error=raise_on_error) |
22 if report_first: | 23 if report_first: |
23 doctest_args['optionflags'] = doctest.REPORT_ONLY_FIRST_FAILURE | 24 doctest_args['optionflags'] = doctest.REPORT_ONLY_FIRST_FAILURE |
24 | 25 |
25 # gather tests | 26 # gather tests |