[Python-checkins] r42934 - python/trunk/Lib/test/test_ctypes.py
thomas.heller
python-checkins at python.org
Thu Mar 9 08:21:39 CET 2006
Author: thomas.heller
Date: Thu Mar 9 08:21:33 2006
New Revision: 42934
Modified:
python/trunk/Lib/test/test_ctypes.py
Log:
Replace the trivial ctypes test (did only an import) with the real test suite.
Modified: python/trunk/Lib/test/test_ctypes.py
==============================================================================
--- python/trunk/Lib/test/test_ctypes.py (original)
+++ python/trunk/Lib/test/test_ctypes.py Thu Mar 9 08:21:33 2006
@@ -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()
More information about the Python-checkins
mailing list