Mercurial > ift6266
view test.py @ 245:0de14b2034c6
change in testtransformation to test PNIST pipeline
author | Xavier Glorot <glorotxa@iro.umontreal.ca> |
---|---|
date | Tue, 16 Mar 2010 12:13:49 -0400 |
parents | ff26436d42d6 |
children | 92ee9896020d 92c9a6c48ce9 |
line wrap: on
line source
import doctest, sys, pkgutil def runTests(options = doctest.ELLIPSIS or doctest.DONT_ACCEPT_TRUE_FOR_1): import ift6266 predefs = ift6266.__dict__ for (_, name, ispkg) in pkgutil.walk_packages(ift6266.__path__, ift6266.__name__+'.'): if not ispkg: if name.startswith('ift6266.scripts.') or \ name.startswith('ift6266.data_generation.transformations.pycaptcha.') or \ name in ['ift6266.test', 'ift6266.data_generation.transformations.testmod', 'ift6266.data_generation.transformations.gimp_script']: continue print "Testing:", name __import__(name) doctest.testmod(sys.modules[name], extraglobs=predefs, optionflags=options) if __name__ == '__main__': runTests()