comparison tests/test.py @ 63:af1476a936fc

add a multipart processor so we can post damn files
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 01 Mar 2012 16:57:00 -0800
parents 53ec5144f84f
children bb8d993376aa
comparison
equal deleted inserted replaced
62:7c154953acc4 63:af1476a936fc
39 doctest_args = dict(extraglobs=extraglobs, raise_on_error=raise_on_error) 39 doctest_args = dict(extraglobs=extraglobs, raise_on_error=raise_on_error)
40 if report_first: 40 if report_first:
41 doctest_args['optionflags'] = doctest.REPORT_ONLY_FIRST_FAILURE 41 doctest_args['optionflags'] = doctest.REPORT_ONLY_FIRST_FAILURE
42 42
43 # gather tests 43 # gather tests
44 tests = [ test for test in os.listdir(directory) 44 tests = [test for test in os.listdir(directory)
45 if test.endswith('.txt') ] 45 if test.endswith('.txt')]
46 46
47 # run the tests 47 # run the tests
48 for test in tests: 48 for test in tests:
49 49
50 # make a temporary directory 50 # make a temporary directory