comparison tests/test.py @ 31:f00fcf6d9f1d

test not modified response
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 05 Mar 2012 13:49:07 -0800
parents 4d1852cfc077
children
comparison
equal deleted inserted replaced
30:52103702a732 31:f00fcf6d9f1d
15 results = {} 15 results = {}
16 16
17 # doctest arguments 17 # doctest arguments
18 directory = os.path.dirname(os.path.abspath(__file__)) 18 directory = os.path.dirname(os.path.abspath(__file__))
19 extraglobs = {'here': directory} 19 extraglobs = {'here': directory}
20 doctest_args = dict(extraglobs=extraglobs, raise_on_error=raise_on_error) 20 doctest_args = dict(extraglobs=extraglobs, raise_on_error=raise_on_error, )
21 doctest_args['optionflags'] = doctest.ELLIPSIS
21 if report_first: 22 if report_first:
22 doctest_args['optionflags'] = doctest.REPORT_ONLY_FIRST_FAILURE 23 doctest_args['optionflags'] |= doctest.REPORT_ONLY_FIRST_FAILURE
23 24
24 # gather tests 25 # gather tests
25 tests = [test for test in os.listdir(directory) 26 tests = [test for test in os.listdir(directory)
26 if test.endswith('.txt')] 27 if test.endswith('.txt')]
27 28