ยปCore Development>Code coverage>Lib/ctypes/test/__init__.py

Python code coverage for Lib/ctypes/test/__init__.py

#countcontent
1n/aimport os
2n/aimport unittest
3n/afrom test import support
4n/a
5n/a# skip tests if _ctypes was not built
6n/actypes = support.import_module('ctypes')
7n/actypes_symbols = dir(ctypes)
8n/a
9n/adef need_symbol(name):
10n/a return unittest.skipUnless(name in ctypes_symbols,
11n/a '{!r} is required'.format(name))
12n/a
13n/adef load_tests(*args):
14n/a return support.load_package_tests(os.path.dirname(__file__), *args)