summaryrefslogtreecommitdiff
path: root/lib/python2.7/test/test_ctypes.py
blob: 17f287449afb5580346e83c5838f4fec666d33f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import unittest

from test.test_support import run_unittest, import_module
#Skip tests if _ctypes module does not exist
import_module('_ctypes')


def test_main():
    import ctypes.test
    skipped, testcases = ctypes.test.get_tests(ctypes.test, "test_*.py", verbosity=0)
    suites = [unittest.makeSuite(t) for t in testcases]
    run_unittest(unittest.TestSuite(suites))

if __name__ == "__main__":
    test_main()