8000
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.
1 parent f11b25b commit 388b90fCopy full SHA for 388b90f
Lib/test/test_os.py
@@ -770,7 +770,11 @@ def setUp(self):
770
if support.can_symlink():
771
os.symlink(os.path.abspath(t2_path), self.link_path)
772
os.symlink('broken', broken_link_path, True)
773
- self.sub2_tree = (sub2_path, ["link"], ["broken_link", "tmp3"])
+ 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"])
778
else:
779
self.sub2_tree = (sub2_path, [], ["tmp3"])
780
0 commit comments