comparison test.py @ 202:6ea5dcf0541e

Branch merge.
author Arnaud Bergeron <abergeron@gmail.com>
date Wed, 03 Mar 2010 16:52:10 -0500
parents 92c9a6c48ce9 92ee9896020d
children
comparison
equal deleted inserted replaced
201:25444fc301e0 202:6ea5dcf0541e
1 import doctest, sys, pkgutil 1 import doctest, sys, pkgutil
2 2
3 def runTests(): 3 def runTests():
4 import ift6266 4 import ift6266
5 predefs = ift6266.__dict__
6 for (_, name, ispkg) in pkgutil.walk_packages(ift6266.__path__, ift6266.__name__+'.'): 5 for (_, name, ispkg) in pkgutil.walk_packages(ift6266.__path__, ift6266.__name__+'.'):
7 if not ispkg: 6 if not ispkg:
8 if name.startswith('ift6266.scripts.') or \ 7 if name.startswith('ift6266.scripts.') or \
9 name.startswith('ift6266.data_generation.transformations.pycaptcha.') or \ 8 name.startswith('ift6266.data_generation.transformations.pycaptcha.') or \
10 name in ['ift6266.test', 9 name in ['ift6266.test',
11 'ift6266.data_generation.transformations.testmod', 10 'ift6266.data_generation.transformations.testmod',
12 'ift6266.data_generation.transformations.gimp_script']: 11 'ift6266.data_generation.transformations.gimp_script']:
13 continue 12 continue
13 test(name)
14 14
15 def test(name): 15 def test(name):
16 import ift6266 16 import ift6266
17 predefs = ift6266.__dict__ 17 predefs = ift6266.__dict__
18 options = doctest.ELLIPSIS or doctest.DONT_ACCEPT_TRUE_FOR_1 18 options = doctest.ELLIPSIS or doctest.DONT_ACCEPT_TRUE_FOR_1