diff options
author | Thomas Heller <theller@ctypes.org> | 2006-03-09 07:21:33 (GMT) |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2006-03-09 07:21:33 (GMT) |
commit | e317d0e30724eb61ce66e268d6dca9a37f033f20 (patch) | |
tree | 9c2cff3f7abdea8a930418240ea2fd98b3404750 /Lib | |
parent | 72c2c062d71c499863ff6e260525faaea4a53dbb (diff) | |
download | cpython-e317d0e30724eb61ce66e268d6dca9a37f033f20.zip cpython-e317d0e30724eb61ce66e268d6dca9a37f033f20.tar.gz cpython-e317d0e30724eb61ce66e268d6dca9a37f033f20.tar.bz2 |
Replace the trivial ctypes test (did only an import) with the real test suite.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_ctypes.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/Lib/test/test_ctypes.py b/Lib/test/test_ctypes.py index 8a931d9..fd2032b 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() |