diff --git a/tests/test_client.py b/tests/test_client.py index 0ed7411..73fea3f 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -373,7 +373,10 @@ def test_purge(self): subdir.mkdir() readonly_file = dir_to_purge / 'readonly.dummy' items_to_purge = [ - readonly_file, dir_to_purge / 'some.dummy', subdir / 'other.dummy', subdir + readonly_file, + dir_to_purge / 'some.dummy', + subdir / 'other.dummy', + subdir, ] items_to_keep = [dir_to_purge / 'file.to.keep'] for item in items_to_purge + items_to_keep: diff --git a/tests/test_utils.py b/tests/test_utils.py index 84f56d1..18fbb72 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -57,7 +57,6 @@ def test_remove_readonly_file(self): if ON_WINDOWS: self.assertTrue(tufup.utils.remove_path(file_path, remove_readonly=True)) - def test_remove_readonly_dir(self): """ on linux: a readonly directory prevents deletion of the directory itself