@@ -715,7 +715,6 @@ def test_copytree_simple(self):
715715 actual = read_file ((dst_dir , 'test_dir' , 'test.txt' ))
716716 self .assertEqual (actual , '456' )
717717
718- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
719718 def test_copytree_dirs_exist_ok (self ):
720719 src_dir = self .mkdtemp ()
721720 dst_dir = self .mkdtemp ()
@@ -1557,7 +1556,6 @@ def test_copyfile_nonexistent_dir(self):
15571556 write_file (src_file , 'foo' )
15581557 self .assertRaises (FileNotFoundError , shutil .copyfile , src_file , dst )
15591558
1560- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
15611559 def test_copyfile_copy_dir (self ):
15621560 # Issue 45234
15631561 # test copy() and copyfile() raising proper exceptions when src and/or
@@ -2498,18 +2496,15 @@ def test_move_file(self):
24982496 # Move a file to another location on the same filesystem.
24992497 self ._check_move_file (self .src_file , self .dst_file , self .dst_file )
25002498
2501- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
25022499 def test_move_file_to_dir (self ):
25032500 # Move a file inside an existing dir on the same filesystem.
25042501 self ._check_move_file (self .src_file , self .dst_dir , self .dst_file )
25052502
2506- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
25072503 def test_move_file_to_dir_pathlike_src (self ):
25082504 # Move a pathlike file to another location on the same filesystem.
25092505 src = pathlib .Path (self .src_file )
25102506 self ._check_move_file (src , self .dst_dir , self .dst_file )
25112507
2512- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
25132508 def test_move_file_to_dir_pathlike_dst (self ):
25142509 # Move a file to another pathlike location on the same filesystem.
25152510 dst = pathlib .Path (self .dst_dir )
@@ -2520,7 +2515,6 @@ def test_move_file_other_fs(self):
25202515 # Move a file to an existing dir on another filesystem.
25212516 self .test_move_file ()
25222517
2523- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
25242518 @mock_rename
25252519 def test_move_file_to_dir_other_fs (self ):
25262520 # Move a file to another location on another filesystem.
@@ -2539,30 +2533,25 @@ def test_move_dir_other_fs(self):
25392533 # Move a dir to another location on another filesystem.
25402534 self .test_move_dir ()
25412535
2542- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
25432536 def test_move_dir_to_dir (self ):
25442537 # Move a dir inside an existing dir on the same filesystem.
25452538 self ._check_move_dir (self .src_dir , self .dst_dir ,
25462539 os .path .join (self .dst_dir , os .path .basename (self .src_dir )))
25472540
2548- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
25492541 @mock_rename
25502542 def test_move_dir_to_dir_other_fs (self ):
25512543 # Move a dir inside an existing dir on another filesystem.
25522544 self .test_move_dir_to_dir ()
25532545
2554- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
25552546 def test_move_dir_sep_to_dir (self ):
25562547 self ._check_move_dir (self .src_dir + os .path .sep , self .dst_dir ,
25572548 os .path .join (self .dst_dir , os .path .basename (self .src_dir )))
25582549
2559- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
25602550 @unittest .skipUnless (os .path .altsep , 'requires os.path.altsep' )
25612551 def test_move_dir_altsep_to_dir (self ):
25622552 self ._check_move_dir (self .src_dir + os .path .altsep , self .dst_dir ,
25632553 os .path .join (self .dst_dir , os .path .basename (self .src_dir )))
25642554
2565- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
25662555 def test_existing_file_inside_dest_dir (self ):
25672556 # A file with the same name inside the destination dir already exists.
25682557 with open (self .dst_file , "wb" ):
@@ -2645,7 +2634,6 @@ def test_move_dir_symlink(self):
26452634 self .assertTrue (os .path .islink (dst_link ))
26462635 self .assertTrue (os .path .samefile (src , dst_link ))
26472636
2648- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
26492637 def test_move_return_value (self ):
26502638 rv = shutil .move (self .src_file , self .dst_dir )
26512639 self .assertEqual (rv ,
@@ -2655,7 +2643,6 @@ def test_move_as_rename_return_value(self):
26552643 rv = shutil .move (self .src_file , os .path .join (self .dst_dir , 'bar' ))
26562644 self .assertEqual (rv , os .path .join (self .dst_dir , 'bar' ))
26572645
2658- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
26592646 @mock_rename
26602647 def test_move_file_special_function (self ):
26612648 moved = []
@@ -2664,7 +2651,6 @@ def _copy(src, dst):
26642651 shutil .move (self .src_file , self .dst_dir , copy_function = _copy )
26652652 self .assertEqual (len (moved ), 1 )
26662653
2667- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
26682654 @mock_rename
26692655 def test_move_dir_special_function (self ):
26702656 moved = []
@@ -2693,7 +2679,6 @@ def test_move_dir_caseinsensitive(self):
26932679
26942680 # bpo-26791: Check that a symlink to a directory can
26952681 # be moved into that directory.
2696- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
26972682 @mock_rename
26982683 def _test_move_symlink_to_dir_into_dir (self , dst ):
26992684 src = os .path .join (self .src_dir , 'linktodir' )
@@ -2894,7 +2879,6 @@ def test_file_offset(self):
28942879 self .assertEqual (src .tell (), self .FILESIZE )
28952880 self .assertEqual (dst .tell (), self .FILESIZE )
28962881
2897- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
28982882 @unittest .skipIf (os .name != 'nt' , "Windows only" )
28992883 def test_win_impl (self ):
29002884 # Make sure alternate Windows implementation is called.
0 commit comments