]> git.saurik.com Git - wxWidgets.git/blob - wxPython/wx/py/tests/testall.py
fixed wxVsnprintf() to write as much as it can if the output buffer is too short
[wxWidgets.git] / wxPython / wx / py / tests / testall.py
1 #!/usr/bin/env python
2
3 __author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
4 __cvsid__ = "$Id$"
5 __revision__ = "$Revision$"[11:-2]
6
7
8 import unittest
9 import glob
10 import os
11
12
13 def suite():
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))
20 return suite
21
22
23 if __name__ == '__main__':
24 unittest.main(defaultTest='suite')
25