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 1b3267c commit cce2566Copy full SHA for cce2566
1 file changed
Lib/test/test_posixpath.py
@@ -550,18 +550,18 @@ def test_realpath_invalid_paths(self):
550
else:
551
self.assertEqual(realpath(path, strict=False), path)
552
if support.is_wasi:
553
- self.assertRaises(FileNotFoundError, realpath, path, strict=True)
554
- else:
555
self.assertRaises(OSError, realpath, path, strict=True)
+ else:
+ self.assertRaises(FileNotFoundError, realpath, path, strict=True)
556
path = b'/nonexistent/\xff'
557
if sys.platform == 'win32':
558
self.assertRaises(UnicodeDecodeError, realpath, path, strict=False)
559
560
561
562
563
564
565
566
@os_helper.skip_unless_symlink
567
@skip_if_ABSTFN_contains_backslash
0 commit comments