diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-03-08 19:15:43 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-03-08 19:15:43 (GMT) |
commit | 7ab61ae8aa4a83e2f63c9c949096d42c22ee247f (patch) | |
tree | 228ae6c7ca10c0092ab8d65fd650340f03c3042b /Lib | |
parent | 947f411b0d890925bc00ab88b120da725ab0e897 (diff) | |
parent | adca8464b16f1264660770046722feff712a086d (diff) | |
download | cpython-7ab61ae8aa4a83e2f63c9c949096d42c22ee247f.zip cpython-7ab61ae8aa4a83e2f63c9c949096d42c22ee247f.tar.gz cpython-7ab61ae8aa4a83e2f63c9c949096d42c22ee247f.tar.bz2 |
Backed out changeset f9e22717722d
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_os.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 78db034..73db39c 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -837,11 +837,7 @@ class WalkTests(unittest.TestCase): if support.can_symlink(): os.symlink(os.path.abspath(t2_path), self.link_path) os.symlink('broken', broken_link_path, True) - if os.path.isdir(broken_link_path): - # On Windows a symlink can has the FILE_ATTRIBUTE_DIRECTORY flag. - self.sub2_tree = (sub2_path, ["broken_link", "link"], ["tmp3"]) - else: - self.sub2_tree = (sub2_path, ["link"], ["broken_link", "tmp3"]) + self.sub2_tree = (sub2_path, ["link"], ["broken_link", "tmp3"]) else: self.sub2_tree = (sub2_path, [], ["tmp3"]) |