Replace the trivial ctypes test (did only an import) with the real test suite.

This commit is contained in:
Thomas Heller 2006-03-09 07:21:33 +00:00
parent 72c2c062d7
commit e317d0e307
1 changed files with 11 additions and 3 deletions

View File

@ -1,4 +1,12 @@
# trivial test import unittest
import _ctypes from test.test_support import run_suite
import ctypes import ctypes.test
def test_main():
skipped, testcases = ctypes.test.get_tests(ctypes.test, "test_*.py", verbosity=0)
suites = [unittest.makeSuite(t) for t in testcases]
run_suite(unittest.TestSuite(suites))
if __name__ == "__main__":
test_main()