diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2014-08-08 18:32:16 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2014-08-08 18:32:16 (GMT) |
commit | 5a794c16d98a12f75b728ff902c410f10f93770f (patch) | |
tree | d9f29c5e59cf7fed90e5bf09d8b06f6bc3eda690 /Lib/test | |
parent | 79a1ffde9b3ae4b7dccdf2a64c6fc7cb7c243211 (diff) | |
download | cpython-5a794c16d98a12f75b728ff902c410f10f93770f.zip cpython-5a794c16d98a12f75b728ff902c410f10f93770f.tar.gz cpython-5a794c16d98a12f75b728ff902c410f10f93770f.tar.bz2 |
Issue #22060: Clean up/simplify test_ctypes, use test discovery
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_ctypes.py | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/Lib/test/test_ctypes.py b/Lib/test/test_ctypes.py index 496355e..53964ca 100644 --- a/Lib/test/test_ctypes.py +++ b/Lib/test/test_ctypes.py @@ -1,16 +1,6 @@ import unittest -from test.support import import_module - -# Skip tests if _ctypes module was not built. -import_module('_ctypes') - -import ctypes.test - -def load_tests(*args): - skipped, testcases = ctypes.test.get_tests(ctypes.test, "test_*.py", verbosity=0) - suites = [unittest.makeSuite(t) for t in testcases] - return unittest.TestSuite(suites) +from ctypes.test import load_tests if __name__ == "__main__": unittest.main() |