Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: fa7193286099f8e4164f4a795afd5ad4a8e229df authored by Larry Hastings on 20 December 2015, 03:31:10 UTC
Release bump for Python 3.4.4 final.
Tip revision: fa71932
__init__.py
import os
import unittest
from test import support

# skip tests if _ctypes was not built
ctypes = support.import_module('ctypes')
ctypes_symbols = dir(ctypes)

def need_symbol(name):
    return unittest.skipUnless(name in ctypes_symbols,
                               '{!r} is required'.format(name))

def load_tests(*args):
    return support.load_package_tests(os.path.dirname(__file__), *args)
back to top