Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: bf9cccb2b54ad2c641ea78435a8618a6d251491e authored by Ned Deily on 19 September 2017, 08:31:30 UTC
post 3.3.7, should there be any
Tip revision: bf9cccb
test_ctypes.py
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()
back to top