def test_shutil_copy(): if os.name == 'nt': py.test.skip('Windows cannot copy or rename to an in-use file') a = udir.join('file_a') b = udir.join('file_a') a.write('hello') shutil_copy(str(a), str(b)) assert b.read() == 'hello'
def test_shutil_copy(): a = udir.join('file_a') b = udir.join('file_a') a.write('hello') shutil_copy(str(a), str(b)) assert b.read() == 'hello'