diff options
Diffstat (limited to 'Lib/test/test_shutil.py')
-rw-r--r-- | Lib/test/test_shutil.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py index 8f1abd8..8160f41 100644 --- a/Lib/test/test_shutil.py +++ b/Lib/test/test_shutil.py @@ -651,16 +651,14 @@ class TestMove(unittest.TestCase): def test_move_file_other_fs(self): # Move a file to an existing dir on another filesystem. if not self.dir_other_fs: - # skip - return + self.skipTest('dir on other filesystem not available') self._check_move_file(self.src_file, self.file_other_fs, self.file_other_fs) def test_move_file_to_dir_other_fs(self): # Move a file to another location on another filesystem. if not self.dir_other_fs: - # skip - return + self.skipTest('dir on other filesystem not available') self._check_move_file(self.src_file, self.dir_other_fs, self.file_other_fs) @@ -678,8 +676,7 @@ class TestMove(unittest.TestCase): def test_move_dir_other_fs(self): # Move a dir to another location on another filesystem. if not self.dir_other_fs: - # skip - return + self.skipTest('dir on other filesystem not available') dst_dir = tempfile.mktemp(dir=self.dir_other_fs) try: self._check_move_dir(self.src_dir, dst_dir, dst_dir) @@ -697,8 +694,7 @@ class TestMove(unittest.TestCase): def test_move_dir_to_dir_other_fs(self): # Move a dir inside an existing dir on another filesystem. if not self.dir_other_fs: - # skip - return + self.skipTest('dir on other filesystem not available') self._check_move_dir(self.src_dir, self.dir_other_fs, os.path.join(self.dir_other_fs, os.path.basename(self.src_dir))) |