Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 706379a

Browse files
Backed out changeset da020e408c7f
2 parents 43cbd05 + 7ab61ae commit 706379a

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
@@ -836,11 +836,7 @@ def setUp(self):
836836
if support.can_symlink():
837837
os.symlink(os.path.abspath(t2_path), self.link_path)
838838
os.symlink('broken', broken_link_path, True)
839-
if os.path.isdir(broken_link_path):
840-
# On Windows a symlink can has the FILE_ATTRIBUTE_DIRECTORY flag.
841-
self.sub2_tree = (sub2_path, ["broken_link", "link"], ["tmp3"])
842-
else:
843-
self.sub2_tree = (sub2_path, ["link"], ["broken_link", "tmp3"])
839+
self.sub2_tree = (sub2_path, ["link"], ["broken_link", "tmp3"])
844840
else:
845841
self.sub2_tree = (sub2_path, [], ["tmp3"])
846842

0 commit comments

Comments
 (0)