File: test_ctypes.py

package info (click to toggle)
python3.1 3.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 56,796 kB
  • ctags: 74,428
  • sloc: python: 319,823; ansic: 286,471; asm: 9,561; sh: 5,066; makefile: 3,361; objc: 775; xml: 62
file content (16 lines) | stat: -rw-r--r-- 411 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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()