Python code coverage for Lib/ctypes/test/__init__.py
| # | count | content |
|---|---|---|
| 1 | n/a | import os |
| 2 | n/a | import unittest |
| 3 | n/a | from test import support |
| 4 | n/a | |
| 5 | n/a | # skip tests if _ctypes was not built |
| 6 | n/a | ctypes = support.import_module('ctypes') |
| 7 | n/a | ctypes_symbols = dir(ctypes) |
| 8 | n/a | |
| 9 | n/a | def need_symbol(name): |
| 10 | n/a | return unittest.skipUnless(name in ctypes_symbols, |
| 11 | n/a | '{!r} is required'.format(name)) |
| 12 | n/a | |
| 13 | n/a | def load_tests(*args): |
| 14 | n/a | return support.load_package_tests(os.path.dirname(__file__), *args) |
