Staging
v0.8.1
Revision d08cec6d62394c2b5cc0986a59354fc09868ec1e authored by Georg Brandl on 26 June 2012, 07:43:40 UTC, committed by Georg Brandl on 26 June 2012, 07:43:40 UTC
1 parent dba3b5c
Raw File
test_ctypes.py
import unittest

from test.support import run_unittest, import_module

# Skip tests if _ctypes module was not built.
import_module('_ctypes')

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_unittest(unittest.TestSuite(suites))

if __name__ == "__main__":
    test_main()
back to top