@@ -280,6 +280,10 @@ def test_realpath_strict(self):
280
280
self .assertRaises (FileNotFoundError , ntpath .realpath , ABSTFN , strict = True )
281
281
self .assertRaises (FileNotFoundError , ntpath .realpath , ABSTFN + "2" , strict = True )
282
282
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
+
283
287
@os_helper .skip_unless_symlink
284
288
@unittest .skipUnless (HAVE_GETFINALPATHNAME , 'need _getfinalpathname' )
285
289
def test_realpath_relative (self ):
@@ -442,6 +446,10 @@ def test_realpath_symlink_loops_strict(self):
442
446
self .assertRaises (OSError , ntpath .realpath , ntpath .basename (ABSTFN ),
443
447
strict = True )
444
448
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
+
445
453
@os_helper .skip_unless_symlink
446
454
@unittest .skipUnless (HAVE_GETFINALPATHNAME , 'need _getfinalpathname' )
447
455
def test_realpath_symlink_prefix (self ):
@@ -640,6 +648,10 @@ def test_relpath(self):
640
648
tester ('ntpath.relpath("/a/b", "/a/b")' , '.' )
641
649
tester ('ntpath.relpath("c:/foo", "C:/FOO")' , '.' )
642
650
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
+
643
655
def test_commonpath (self ):
644
656
def check (paths , expected ):
645
657
tester (('ntpath.commonpath(%r)' % paths ).replace ('\\ \\ ' , '\\ ' ),
@@ -849,6 +861,10 @@ def test_path_normcase(self):
849
861
if sys .platform == 'win32' :
850
862
self .assertEqual (ntpath .normcase ('\u03a9 \u2126 ' ), 'ωΩ' )
851
863
864
+ # TODO: RUSTPYTHON, AssertionError: 'ωω' != 'ωΩ'
865
+ if sys .platform == "win32" :
866
+ test_path_normcase = unittest .expectedFailure (test_path_normcase )
867
+
852
868
def test_path_isabs (self ):
853
869
self ._check_function (self .path .isabs )
854
870
0 commit comments