Skip to content

Commit adca846

Browse files
Backed out changeset 19a3e0e664af
1 parent 388b90f commit adca846

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

Lib/test/test_os.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -770,11 +770,7 @@ def setUp(self):
770770
if support.can_symlink():
771771
os.symlink(os.path.abspath(t2_path), self.link_path)
772772
os.symlink('broken', broken_link_path, True)
773-
if os.path.isdir(broken_link_path):
774-
# On Windows a symlink can has the FILE_ATTRIBUTE_DIRECTORY flag.
775-
self.sub2_tree = (sub2_path, ["broken_link", "link"], ["tmp3"])
776-
else:
777-
self.sub2_tree = (sub2_path, ["link"], ["broken_link", "tmp3"])
773+
self.sub2_tree = (sub2_path, ["link"], ["broken_link", "tmp3"])
778774
else:
779775
self.sub2_tree = (sub2_path, [], ["tmp3"])
780776

0 commit comments

Comments
 (0)