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 626af70 commit 22faf97Copy full SHA for 22faf97
Lib/test/test_pathlib/test_pathlib.py
@@ -789,14 +789,13 @@ def test_unlink_missing_ok(self):
789
self.assertFileNotFound(p.unlink)
790
p.unlink(missing_ok=True)
791
792
+ #Windows will raise FileNotFoundError - handling already tested above.
793
+ @needs_posix
794
def test_unlink_missing_ok_intermediate_file(self):
795
p = self.cls(self.base) / 'fileAAA'
796
p.touch()
797
p = p / 'fileBBB'
- if sys.platform.startswith("win"):
- self.assertFileNotFound(p.unlink)
798
- else:
799
- self.assertNotADirectory(p.unlink)
+ self.assertNotADirectory(p.unlink)
800
801
802
def test_rmdir(self):
0 commit comments