Staging
v0.5.1
swh:1:snp:635f4099902912592851108bcac178ff574f7c5f
Raw File
Tip revision: 6053744c3a3175992ac5f27cdf628e5ca01cbb57 authored by Barry Warsaw on 03 August 2010, 22:39:42 UTC
Bumping to 2.6.6 rc 1
Tip revision: 6053744
test_ctypes.py
import unittest

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


def test_main():
    with _check_py3k_warnings(("buffer.. not supported", DeprecationWarning),
                              ("classic (int|long) division", DeprecationWarning),):
        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()
back to top