summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ctypes.py
blob: 496355e61d3435c4ff97e978646643ceab461252 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)

if __name__ == "__main__":
    unittest.main()