Staging
v0.8.1
https://github.com/python/cpython
Revision bd371a4cbb0cdf4fb2b726134747c3ea062c5321 authored by Barry Warsaw on 17 March 2012, 22:19:15 UTC, committed by Barry Warsaw on 17 March 2012, 22:19:15 UTC
1 parent 2875b5b
Raw File
Tip revision: bd371a4cbb0cdf4fb2b726134747c3ea062c5321 authored by Barry Warsaw on 17 March 2012, 22:19:15 UTC
Bump to 2.6.8rc2
Tip revision: bd371a4
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