]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/wx/py/tests/testall.py
3 __author__
= "Patrick K. O'Brien <pobrien@orbtech.com>"
5 __revision__
= "$Revision$"[11:-2]
14 """Return a test suite containing all test cases in all test modules.
15 Searches the current directory for any modules matching test_*.py."""
16 suite
= unittest
.TestSuite()
17 for filename
in glob
.glob('test_*.py'):
18 module
= __import__(os
.path
.splitext(filename
)[0])
19 suite
.addTest(unittest
.defaultTestLoader
.loadTestsFromModule(module
))
23 if __name__
== '__main__':
24 unittest
.main(defaultTest
='suite')