@@ -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
@@ -4927,7 +4922,6 @@ def setUp(self):
49274922 self .addCleanup (os_helper .rmtree , self .path )
49284923 os .mkdir (self .path )
49294924
4930- @unittest .expectedFailure # TODO: RUSTPYTHON; (AssertionError: TypeError not raised by DirEntry)
49314925 def test_uninstantiable (self ):
49324926 self .assertRaises (TypeError , os .DirEntry )
49334927
@@ -4976,7 +4970,6 @@ def assert_stat_equal(self, stat1, stat2, skip_fields):
49764970 else :
49774971 self .assertEqual (stat1 , stat2 )
49784972
4979- @unittest .expectedFailure # TODO: RUSTPYTHON; (AssertionError: TypeError not raised by ScandirIter)
49804973 def test_uninstantiable (self ):
49814974 scandir_iter = os .scandir (self .path )
49824975 self .assertRaises (TypeError , type (scandir_iter ))
@@ -5230,7 +5223,6 @@ def test_fd(self):
52305223 st = os .stat (entry .name , dir_fd = fd , follow_symlinks = False )
52315224 self .assertEqual (entry .stat (follow_symlinks = False ), st )
52325225
5233- @unittest .expectedFailureIfWindows ('TODO: RUSTPYTHON; (AssertionError: FileNotFoundError not raised by scandir)' )
52345226 @unittest .skipIf (support .is_wasi , "WASI maps '' to cwd" )
52355227 def test_empty_path (self ):
52365228 self .assertRaises (FileNotFoundError , os .scandir , '' )
0 commit comments