comparison makeitso/python_package/tests/test.py @ 145:c07dd14d5842

we always want doctest.ELLIPSIS. why the hell wouldnt we?
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 05 Mar 2012 14:26:54 -0800
parents 829b7f528483
children ebaee69c5ea4
comparison
equal deleted inserted replaced
144:18ef2d7c5b93 145:c07dd14d5842
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
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
26 tests = [ test for test in os.listdir(directory) 27 tests = [ test for test in os.listdir(directory)
27 if test.endswith('.txt') ] 28 if test.endswith('.txt') ]
28 29