Lines Matching refs:copyfile
712 # Issue #3002: copyfile and copytree block indefinitely on named pipes
1207 ### shutil.copyfile
1219 shutil.copyfile(link, dst_link, follow_symlinks=False)
1223 shutil.copyfile(link, dst)
1239 self.assertRaises(shutil.SameFileError, shutil.copyfile, src, dst)
1259 self.assertRaises(shutil.SameFileError, shutil.copyfile, src, dst)
1266 # Issue #3002: copyfile and copytree block indefinitely on named pipes
1277 shutil.copyfile, TESTFN, TESTFN2)
1279 shutil.copyfile, __file__, TESTFN)
1290 rv = shutil.copyfile(src_file, dst_file)
1295 # copyfile() should raise SameFileError if the source and destination
1300 self.assertRaises(SameFileError, shutil.copyfile, src_file, src_file)
1302 self.assertRaises(Error, shutil.copyfile, src_file, src_file)
1317 self.assertRaises(FileNotFoundError, shutil.copyfile, src_file, dst)
1321 # test copy() and copyfile() raising proper exceptions when src and/or
1333 self.assertRaises(err, shutil.copyfile, src_dir, dst)
1334 self.assertRaises(err, shutil.copyfile, src_file, src_dir)
1335 self.assertRaises(err, shutil.copyfile, dir2, src_dir)
2266 shutil.copyfile('srcfile', 'destfile')
2280 shutil.copyfile('srcfile', 'destfile')
2299 shutil.copyfile('srcfile', 'destfile')
2322 shutil.copyfile('srcfile', 'destfile')
2377 shutil.copyfile(TESTFN, TESTFN2)
2390 shutil.copyfile(fname, TESTFN2)
2399 shutil.copyfile(fname, TESTFN2)
2448 shutil.copyfile(TESTFN, TESTFN2)
2462 shutil.copyfile(name, "new")
2483 shutil.copyfile, TESTFN, TESTFN2)
2587 shutil.copyfile, TESTFN, TESTFN2)
2597 shutil.copyfile, TESTFN2, TESTFN2 + '3')
2603 # fds. In such a case copyfile() is supposed to skip the
2617 shutil.copyfile(TESTFN, TESTFN2)
2715 target_api = ['copyfileobj', 'copyfile', 'copymode', 'copystat',