def syncfile(src, dst):
    
    if not os.path.isfile(src):
        raise Exception("No such file: %s" % src)
    
    try:
        dst_mtime = os.path.getmtime(dst)
        src_mtime = os.path.getmtime(src)
        
        # Only accecpt equal modification time as equal as copyFile()
        # syncs over the mtime from the source.
        if src_mtime == dst_mtime:
            return False
        
    except OSError:
        # destination file does not exist, so mtime check fails
        pass
        
    return cp(src, dst)
C{addFailure} wraps its test with the provided adapter.
dataset/ETHPy150Open zynga/jasy/jasy/core/File.py/syncfile--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/trial/test/test_reporter.py/AdaptedReporterTests.test_addFailure