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 f4d97ce + 388b90f commit 55e3218Copy full SHA for 55e3218
1 file changed
Lib/test/test_os.py
@@ -837,7 +837,11 @@ def setUp(self):
837
if support.can_symlink():
838
os.symlink(os.path.abspath(t2_path), self.link_path)
839
os.symlink('broken', broken_link_path, True)
840
- self.sub2_tree = (sub2_path, ["link"], ["broken_link", "tmp3"])
+ if os.path.isdir(broken_link_path):
841
+ # On Windows a symlink can has the FILE_ATTRIBUTE_DIRECTORY flag.
842
+ self.sub2_tree = (sub2_path, ["broken_link", "link"], ["tmp3"])
843
+ else:
844
+ self.sub2_tree = (sub2_path, ["link"], ["broken_link", "tmp3"])
845
else:
846
self.sub2_tree = (sub2_path, [], ["tmp3"])
847
0 commit comments