Thomas Heller | e317d0e | 2006-03-09 07:21:33 +0000 | [diff] [blame] | 1 | import unittest |
Thomas Heller | 200af39 | 2006-03-08 20:38:11 +0000 | [diff] [blame] | 2 | |
Benjamin Peterson | ee8712c | 2008-05-20 21:35:26 +0000 | [diff] [blame] | 3 | from test.support import run_unittest |
Thomas Heller | e317d0e | 2006-03-09 07:21:33 +0000 | [diff] [blame] | 4 | import ctypes.test |
| 5 | |
| 6 | def test_main(): |
| 7 | skipped, testcases = ctypes.test.get_tests(ctypes.test, "test_*.py", verbosity=0) |
| 8 | suites = [unittest.makeSuite(t) for t in testcases] |
Guido van Rossum | d8faa36 | 2007-04-27 19:54:29 +0000 | [diff] [blame] | 9 | run_unittest(unittest.TestSuite(suites)) |
Thomas Heller | e317d0e | 2006-03-09 07:21:33 +0000 | [diff] [blame] | 10 | |
| 11 | if __name__ == "__main__": |
| 12 | test_main() |