summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-03-08 19:13:35 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-03-08 19:13:35 (GMT)
commitadca8464b16f1264660770046722feff712a086d (patch)
tree545c770c505f61b94535e35acc7a85f61ae31932
parent388b90f28e029daaf06aae8026b596e2f20a1cd3 (diff)
downloadcpython-adca8464b16f1264660770046722feff712a086d.zip
cpython-adca8464b16f1264660770046722feff712a086d.tar.gz
cpython-adca8464b16f1264660770046722feff712a086d.tar.bz2
Backed out changeset 19a3e0e664af
-rw-r--r--Lib/test/test_os.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index c5f5937..e29b0d5 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"])