Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 43cbd05 + 7ab61ae commit 706379aCopy full SHA for 706379a
1 file changed
Lib/test/test_os.py
@@ -836,11 +836,7 @@ def setUp(self):
836
if support.can_symlink():
837
os.symlink(os.path.abspath(t2_path), self.link_path)
838
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"])
+ self.sub2_tree = (sub2_path, ["link"], ["broken_link", "tmp3"])
844
else:
845
self.sub2_tree = (sub2_path, [], ["tmp3"])
846
0 commit comments