diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-03-08 21:16:47 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-03-08 21:16:47 +0200 |
commit | 706379ae0d9a26d73572c74f9fe74019447191e4 (patch) | |
tree | d635b0858bad4ca6f5eab679a51b4bf91fe6105e /Lib/test/test_os.py | |
parent | 43cbd05b6cac24a0e1bf13cf326766d3dc3ebea9 (diff) | |
parent | 7ab61ae8aa4a83e2f63c9c949096d42c22ee247f (diff) | |
download | cpython-git-706379ae0d9a26d73572c74f9fe74019447191e4.tar.gz |
Backed out changeset da020e408c7f
Diffstat (limited to 'Lib/test/test_os.py')
-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 3ad21a1aa0..07682f2bf9 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -836,11 +836,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"]) |