@@ -715,7 +715,6 @@ def test_copytree_simple(self):
715
715
actual = read_file ((dst_dir , 'test_dir' , 'test.txt' ))
716
716
self .assertEqual (actual , '456' )
717
717
718
- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
719
718
def test_copytree_dirs_exist_ok (self ):
720
719
src_dir = self .mkdtemp ()
721
720
dst_dir = self .mkdtemp ()
@@ -1557,7 +1556,6 @@ def test_copyfile_nonexistent_dir(self):
1557
1556
write_file (src_file , 'foo' )
1558
1557
self .assertRaises (FileNotFoundError , shutil .copyfile , src_file , dst )
1559
1558
1560
- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
1561
1559
def test_copyfile_copy_dir (self ):
1562
1560
# Issue 45234
1563
1561
# test copy() and copyfile() raising proper exceptions when src and/or
@@ -2498,18 +2496,15 @@ def test_move_file(self):
2498
2496
# Move a file to another location on the same filesystem.
2499
2497
self ._check_move_file (self .src_file , self .dst_file , self .dst_file )
2500
2498
2501
- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
2502
2499
def test_move_file_to_dir (self ):
2503
2500
# Move a file inside an existing dir on the same filesystem.
2504
2501
self ._check_move_file (self .src_file , self .dst_dir , self .dst_file )
2505
2502
2506
- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
2507
2503
def test_move_file_to_dir_pathlike_src (self ):
2508
2504
# Move a pathlike file to another location on the same filesystem.
2509
2505
src = pathlib .Path (self .src_file )
2510
2506
self ._check_move_file (src , self .dst_dir , self .dst_file )
2511
2507
2512
- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
2513
2508
def test_move_file_to_dir_pathlike_dst (self ):
2514
2509
# Move a file to another pathlike location on the same filesystem.
2515
2510
dst = pathlib .Path (self .dst_dir )
@@ -2520,7 +2515,6 @@ def test_move_file_other_fs(self):
2520
2515
# Move a file to an existing dir on another filesystem.
2521
2516
self .test_move_file ()
2522
2517
2523
- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
2524
2518
@mock_rename
2525
2519
def test_move_file_to_dir_other_fs (self ):
2526
2520
# Move a file to another location on another filesystem.
@@ -2539,30 +2533,25 @@ def test_move_dir_other_fs(self):
2539
2533
# Move a dir to another location on another filesystem.
2540
2534
self .test_move_dir ()
2541
2535
2542
- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
2543
2536
def test_move_dir_to_dir (self ):
2544
2537
# Move a dir inside an existing dir on the same filesystem.
2545
2538
self ._check_move_dir (self .src_dir , self .dst_dir ,
2546
2539
os .path .join (self .dst_dir , os .path .basename (self .src_dir )))
2547
2540
2548
- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
2549
2541
@mock_rename
2550
2542
def test_move_dir_to_dir_other_fs (self ):
2551
2543
# Move a dir inside an existing dir on another filesystem.
2552
2544
self .test_move_dir_to_dir ()
2553
2545
2554
- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
2555
2546
def test_move_dir_sep_to_dir (self ):
2556
2547
self ._check_move_dir (self .src_dir + os .path .sep , self .dst_dir ,
2557
2548
os .path .join (self .dst_dir , os .path .basename (self .src_dir )))
2558
2549
2559
- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
2560
2550
@unittest .skipUnless (os .path .altsep , 'requires os.path.altsep' )
2561
2551
def test_move_dir_altsep_to_dir (self ):
2562
2552
self ._check_move_dir (self .src_dir + os .path .altsep , self .dst_dir ,
2563
2553
os .path .join (self .dst_dir , os .path .basename (self .src_dir )))
2564
2554
2565
- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
2566
2555
def test_existing_file_inside_dest_dir (self ):
2567
2556
# A file with the same name inside the destination dir already exists.
2568
2557
with open (self .dst_file , "wb" ):
@@ -2645,7 +2634,6 @@ def test_move_dir_symlink(self):
2645
2634
self .assertTrue (os .path .islink (dst_link ))
2646
2635
self .assertTrue (os .path .samefile (src , dst_link ))
2647
2636
2648
- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
2649
2637
def test_move_return_value (self ):
2650
2638
rv = shutil .move (self .src_file , self .dst_dir )
2651
2639
self .assertEqual (rv ,
@@ -2655,7 +2643,6 @@ def test_move_as_rename_return_value(self):
2655
2643
rv = shutil .move (self .src_file , os .path .join (self .dst_dir , 'bar' ))
2656
2644
self .assertEqual (rv , os .path .join (self .dst_dir , 'bar' ))
2657
2645
2658
- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
2659
2646
@mock_rename
2660
2647
def test_move_file_special_function (self ):
2661
2648
moved = []
@@ -2664,7 +2651,6 @@ def _copy(src, dst):
2664
2651
shutil .move (self .src_file , self .dst_dir , copy_function = _copy )
2665
2652
self .assertEqual (len (moved ), 1 )
2666
2653
2667
- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
2668
2654
@mock_rename
2669
2655
def test_move_dir_special_function (self ):
2670
2656
moved = []
@@ -2693,7 +2679,6 @@ def test_move_dir_caseinsensitive(self):
2693
2679
2694
2680
# bpo-26791: Check that a symlink to a directory can
2695
2681
# be moved into that directory.
2696
- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
2697
2682
@mock_rename
2698
2683
def _test_move_symlink_to_dir_into_dir (self , dst ):
2699
2684
src = os .path .join (self .src_dir , 'linktodir' )
@@ -2894,7 +2879,6 @@ def test_file_offset(self):
2894
2879
self .assertEqual (src .tell (), self .FILESIZE )
2895
2880
self .assertEqual (dst .tell (), self .FILESIZE )
2896
2881
2897
- @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
2898
2882
@unittest .skipIf (os .name != 'nt' , "Windows only" )
2899
2883
def test_win_impl (self ):
2900
2884
# Make sure alternate Windows implementation is called.
0 commit comments