Poodletooth-iLand/panda/python/Lib/site-packages/wx/py/tests/testall.py
Master Jumblespeed d882959bfa switch to remote
2015-05-18 22:11:33 -04:00

22 lines
582 B
Python
Executable file

#!/usr/bin/env python
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
import unittest
import glob
import os
def suite():
"""Return a test suite containing all test cases in all test modules.
Searches the current directory for any modules matching test_*.py."""
suite = unittest.TestSuite()
for filename in glob.glob('test_*.py'):
module = __import__(os.path.splitext(filename)[0])
suite.addTest(unittest.defaultTestLoader.loadTestsFromModule(module))
return suite
if __name__ == '__main__':
unittest.main(defaultTest='suite')