Skip to content

Commit 89326fc

Browse files
committed
Fix test_mkdir() on Windows
1 parent 23de823 commit 89326fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_os/test_os.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4130,7 +4130,8 @@ def test_mkdir(self):
41304130
create_file(filename)
41314131
self.assertRaises(FileExistsError, os.mkdir, filename)
41324132

4133-
self.assertRaises(NotADirectoryError, os.mkdir, subdir)
4133+
self.assertRaises((NotADirectoryError, FileNotFoundError),
4134+
os.mkdir, subdir)
41344135

41354136

41364137
class CPUCountTests(unittest.TestCase):

0 commit comments

Comments
 (0)