cpython: c388e93879c4 (original) (raw)

Mercurial > cpython

changeset 85193:c388e93879c4 3.3

Issue #1666318: Add a test that shutil.copytree() retains directory permissions. Patch by Catherine Devlin. [#1666318]

Antoine Pitrou solipsis@pitrou.net
date Fri, 16 Aug 2013 19:35:02 +0200
parents 9df0501fab35
children 8906713d5704 477a143bfbfd
files Lib/test/test_shutil.py Misc/NEWS
diffstat 2 files changed, 29 insertions(+), 0 deletions(-)[+] [-] Lib/test/test_shutil.py 26 Misc/NEWS 3

line wrap: on

line diff

--- a/Lib/test/test_shutil.py +++ b/Lib/test/test_shutil.py @@ -726,6 +726,32 @@ class TestShutil(unittest.TestCase): shutil.rmtree(src_dir) shutil.rmtree(os.path.dirname(dst_dir))

+

+

+ @unittest.skipUnless(hasattr(os, 'link'), 'requires os.link') def test_dont_copy_file_onto_link_to_itself(self): # Temporarily disable test on Windows.

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -258,6 +258,9 @@ IDLE Tests ----- +- Issue #1666318: Add a test that shutil.copytree() retains directory