diff --git a/fsspec/tests/abstract/copy.py b/fsspec/tests/abstract/copy.py index 66aa5e339..9cb2c0eb3 100644 --- a/fsspec/tests/abstract/copy.py +++ b/fsspec/tests/abstract/copy.py @@ -227,7 +227,10 @@ def test_copy_glob( prefixed_expected = [fs_join(target, p) for p in expected] assert sorted(output) == sorted(prefixed_expected) - fs.rm(target, recursive=True) + try: + fs.rm(target, recursive=True) + except FileNotFoundError: + pass def test_copy_list_of_files_to_existing_directory( self, fs, fs_join, fs_bulk_operations_scenario_0, fs_target diff --git a/fsspec/tests/abstract/get.py b/fsspec/tests/abstract/get.py index e8c3d1b52..6e9746ee3 100644 --- a/fsspec/tests/abstract/get.py +++ b/fsspec/tests/abstract/get.py @@ -248,7 +248,10 @@ def test_get_glob( prefixed_expected = [local_join(target, p) for p in expected] assert sorted(output) == sorted(prefixed_expected) - local_fs.rm(target, recursive=True) + try: + local_fs.rm(target, recursive=True) + except FileNotFoundError: + pass def test_get_list_of_files_to_existing_directory( self, diff --git a/fsspec/tests/abstract/put.py b/fsspec/tests/abstract/put.py index da44dab3f..811a41127 100644 --- a/fsspec/tests/abstract/put.py +++ b/fsspec/tests/abstract/put.py @@ -239,7 +239,10 @@ def test_get_glob( prefixed_expected = [fs_join(target, p) for p in expected] assert sorted(output) == sorted(prefixed_expected) - fs.rm(target, recursive=True) + try: + fs.rm(target, recursive=True) + except FileNotFoundError: + pass def test_put_list_of_files_to_existing_directory( self,