From: Serhiy Storchaka Date: Tue, 8 Mar 2016 19:13:35 +0000 (+0200) Subject: Backed out changeset 19a3e0e664af X-Git-Tag: v3.4.5rc1~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=adca8464b16f1264660770046722feff712a086d;p=python Backed out changeset 19a3e0e664af --- diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index c5f5937889..e29b0d585c 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -770,11 +770,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"])