def copy_xxmodule_c(directory):
 filename = _get_xxmodule_path()
 if (filename is None):
  raise unittest.SkipTest('cannot find xxmodule.c (test must run in the python build dir)')
 shutil.copy(filename, directory)

def copy_xxmodule_c ( directory ) : filename = _get_xxmodule_path ( ) if ( filename is None ) : raise unittest . SkipTest ( 'cannot find xxmodule.c (test must run in the python build dir)' ) shutil . copy ( filename , directory )
helper for tests that need the xxmodule .