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 3a5e1af + 55e3218 commit 238fecdCopy full SHA for 238fecd
1 file changed
Lib/test/test_os.py
@@ -836,7 +836,11 @@ 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
- self.sub2_tree = (sub2_path, ["link"], ["broken_link", "tmp3"])
+ 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"])
844
else:
845
self.sub2_tree = (sub2_path, [], ["tmp3"])
846
0 commit comments