@@ -736,7 +736,6 @@ def test_file_attributes(self):
736736 result .st_file_attributes & stat .FILE_ATTRIBUTE_DIRECTORY ,
737737 stat .FILE_ATTRIBUTE_DIRECTORY )
738738
739- @unittest .expectedFailureIfWindows ('TODO: RUSTPYTHON; os.stat (PermissionError: [Errno 5] Access is denied.)' )
740739 @unittest .skipUnless (sys .platform == "win32" , "Win32 specific tests" )
741740 def test_access_denied (self ):
742741 # Default to FindFirstFile WIN32_FIND_DATA when access is
@@ -759,7 +758,6 @@ def test_access_denied(self):
759758 self .assertNotEqual (result .st_size , 0 )
760759 self .assertTrue (os .path .isfile (fname ))
761760
762- @unittest .expectedFailureIfWindows ('TODO: RUSTPYTHON; os.stat (PermissionError: [Errno 1] Incorrect function.)' )
763761 @unittest .skipUnless (sys .platform == "win32" , "Win32 specific tests" )
764762 def test_stat_block_device (self ):
765763 # bpo-38030: os.stat fails for block devices
@@ -1796,7 +1794,6 @@ def test_mode(self):
17961794 self .assertEqual (os .stat (path ).st_mode & 0o777 , 0o555 )
17971795 self .assertEqual (os .stat (parent ).st_mode & 0o777 , 0o775 )
17981796
1799- @unittest .expectedFailureIfWindows ('TODO: RUSTPYTHON; os.umask not implemented yet for all platforms' )
18001797 @unittest .skipIf (
18011798 support .is_emscripten or support .is_wasi ,
18021799 "Emscripten's/WASI's umask is a stub."
@@ -2116,7 +2113,6 @@ def test_urandom_fd_closed(self):
21162113 """
21172114 rc , out , err = assert_python_ok ('-Sc' , code )
21182115
2119- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON; (ModuleNotFoundError: No module named 'os'" )
21202116 def test_urandom_fd_reopened (self ):
21212117 # Issue #21207: urandom() should detect its fd to /dev/urandom
21222118 # changed to something else, and reopen it.
@@ -3221,7 +3217,6 @@ def test_getfinalpathname_handles(self):
32213217
32223218 self .assertEqual (0 , handle_delta )
32233219
3224- @unittest .expectedFailureIfWindows ('TODO: RUSTPYTHON; os.stat (PermissionError: [Errno 5] Access is denied.)' )
32253220 @support .requires_subprocess ()
32263221 def test_stat_unlink_race (self ):
32273222 # bpo-46785: the implementation of os.stat() falls back to reading
@@ -5230,7 +5225,6 @@ def test_fd(self):
52305225 st = os .stat (entry .name , dir_fd = fd , follow_symlinks = False )
52315226 self .assertEqual (entry .stat (follow_symlinks = False ), st )
52325227
5233- @unittest .expectedFailureIfWindows ('TODO: RUSTPYTHON; (AssertionError: FileNotFoundError not raised by scandir)' )
52345228 @unittest .skipIf (support .is_wasi , "WASI maps '' to cwd" )
52355229 def test_empty_path (self ):
52365230 self .assertRaises (FileNotFoundError , os .scandir , '' )
0 commit comments