From: Thomas Heller <theller@ctypes.org> Date: Thu, 9 Mar 2006 07:21:33 +0000 (+0000) Subject: Replace the trivial ctypes test (did only an import) with the real test suite. X-Git-Tag: v2.5a0~305 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e317d0e30724eb61ce66e268d6dca9a37f033f20;p=python Replace the trivial ctypes test (did only an import) with the real test suite. --- diff --git a/Lib/test/test_ctypes.py b/Lib/test/test_ctypes.py index 8a931d97a1..fd2032bc6d 100644 --- a/Lib/test/test_ctypes.py +++ b/Lib/test/test_ctypes.py @@ -1,4 +1,12 @@ -# trivial test +import unittest -import _ctypes -import ctypes +from test.test_support import run_suite +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()