diff --git a/tests/test_data_cloud.py b/tests/test_data_cloud.py index 5903e2373..023c34d9e 100644 --- a/tests/test_data_cloud.py +++ b/tests/test_data_cloud.py @@ -416,7 +416,7 @@ class TestDataCloudCLIBase(TestDvc): # NOTE: check if remote gc works correctly on directories self.main(['gc', '-c', '-f'] + args) - shutil.rmtree(self.dvc.cache.local.cache_dir) + shutil.move(self.dvc.cache.local.cache_dir, self.dvc.cache.local.cache_dir + '.back') sleep() self.main(['fetch'] + args)