]> git.saurik.com Git - wxWidgets.git/blame - wxPython/wx/py/tests/testall.py
wxCheckListBox doesn't require wxUSE_OWNER_DRAWN when using WXUNIVERSAL
[wxWidgets.git] / wxPython / wx / py / tests / testall.py
CommitLineData
1fded56b
RD
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
8import unittest
9import glob
10import os
11
12
13def 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
23if __name__ == '__main__':
24 unittest.main(defaultTest='suite')
25