def requires_load_dynamic(meth):
 meth = support.cpython_only(meth)
 return unittest.skipIf((not hasattr(imp, 'load_dynamic')), 'imp.load_dynamic() required')(meth)

def requires_load_dynamic ( meth ) : meth = support . cpython_only ( meth ) return unittest . skipIf ( ( not hasattr ( imp , 'load_dynamic' ) ) , 'imp.load_dynamic() required' ) ( meth )
decorator to skip a test if not running under cpython or lacking imp .