@@ -280,6 +280,10 @@ def test_realpath_strict(self):
280280 self .assertRaises (FileNotFoundError , ntpath .realpath , ABSTFN , strict = True )
281281 self .assertRaises (FileNotFoundError , ntpath .realpath , ABSTFN + "2" , strict = True )
282282
283+ # TODO: RUSTPYTHON, TypeError: got an unexpected keyword argument 'strict'
284+ if sys .platform == "win32" :
285+ test_realpath_strict = unittest .expectedFailure (test_realpath_strict )
286+
283287 @os_helper .skip_unless_symlink
284288 @unittest .skipUnless (HAVE_GETFINALPATHNAME , 'need _getfinalpathname' )
285289 def test_realpath_relative (self ):
@@ -442,6 +446,10 @@ def test_realpath_symlink_loops_strict(self):
442446 self .assertRaises (OSError , ntpath .realpath , ntpath .basename (ABSTFN ),
443447 strict = True )
444448
449+ # TODO: RUSTPYTHON, FileExistsError: [Errno 183] Cannot create a file when that file already exists. (os error 183): 'None' -> 'None'
450+ if sys .platform == "win32" :
451+ test_realpath_symlink_loops_strict = unittest .expectedFailure (test_realpath_symlink_loops_strict )
452+
445453 @os_helper .skip_unless_symlink
446454 @unittest .skipUnless (HAVE_GETFINALPATHNAME , 'need _getfinalpathname' )
447455 def test_realpath_symlink_prefix (self ):
@@ -640,6 +648,10 @@ def test_relpath(self):
640648 tester ('ntpath.relpath("/a/b", "/a/b")' , '.' )
641649 tester ('ntpath.relpath("c:/foo", "C:/FOO")' , '.' )
642650
651+ # TODO: RUSTPYTHON, FileExistsError: [Errno 183] Cannot create a file when that file already exists. (os error 183): 'None' -> 'None'
652+ if sys .platform == "win32" :
653+ test_relpath = unittest .expectedFailure (test_relpath )
654+
643655 def test_commonpath (self ):
644656 def check (paths , expected ):
645657 tester (('ntpath.commonpath(%r)' % paths ).replace ('\\ \\ ' , '\\ ' ),
@@ -849,6 +861,10 @@ def test_path_normcase(self):
849861 if sys .platform == 'win32' :
850862 self .assertEqual (ntpath .normcase ('\u03a9 \u2126 ' ), 'ωΩ' )
851863
864+ # TODO: RUSTPYTHON, AssertionError: 'ωω' != 'ωΩ'
865+ if sys .platform == "win32" :
866+ test_path_normcase = unittest .expectedFailure (test_path_normcase )
867+
852868 def test_path_isabs (self ):
853869 self ._check_function (self .path .isabs )
854870
0 commit comments