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 4a776cd commit a4cb846Copy full SHA for a4cb846
Lib/test/test_pathlib/test_pathlib.py
@@ -793,7 +793,10 @@ def test_unlink_missing_ok_intermediate_file(self):
793
p = self.cls(self.base) / 'fileAAA'
794
p.touch()
795
p = p / 'fileBBB'
796
- self.assertNotADirectory(p.unlink)
+ if sys.platform.startswith("win"):
797
+ self.assertFileNotFound(p.unlink)
798
+ else:
799
+ self.assertNotADirectory(p.unlink)
800
p.unlink(missing_ok=True)
801
802
def test_rmdir(self):
0 commit comments