From b5e92a1a2232bd03ccd6ce4d1b7aa6800f5cf035 Mon Sep 17 00:00:00 2001 From: "Krzysztof (Chris) Bernat" Date: Thu, 6 Apr 2017 19:50:17 +0100 Subject: [PATCH] #153 tests cleanup, used tmpdir for local storage, folder is removed once the test is done --- test/ds/test_esa_cci_odp.py | 2 +- test/ds/test_local.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/ds/test_esa_cci_odp.py b/test/ds/test_esa_cci_odp.py index 7588d4e1a..9afcd800b 100644 --- a/test/ds/test_esa_cci_odp.py +++ b/test/ds/test_esa_cci_odp.py @@ -64,7 +64,7 @@ def setUp(self): def tearDown(self): DATA_STORE_REGISTRY.add_data_store(self._existing_local_data_store) - shutil.rmtree(self.tmp_dir) + shutil.rmtree(self.tmp_dir, ignore_errors=True) def test_make_local_and_update(self): diff --git a/test/ds/test_local.py b/test/ds/test_local.py index 0b94759d2..c7cc3d5c6 100644 --- a/test/ds/test_local.py +++ b/test/ds/test_local.py @@ -25,7 +25,7 @@ def setUp(self): def tearDown(self): DATA_STORE_REGISTRY.add_data_store(self._existing_local_data_store) - shutil.rmtree(self.tmp_dir) + shutil.rmtree(self.tmp_dir, ignore_errors=True) def test_add_pattern(self): data_sources = self.data_store.query() @@ -133,7 +133,7 @@ def setUp(self): def tearDown(self): DATA_STORE_REGISTRY.add_data_store(self._existing_local_data_store) - shutil.rmtree(self.tmp_dir) + shutil.rmtree(self.tmp_dir, ignore_errors=True) def test_data_store(self): self.assertIs(self.ds1.data_store, self._dummy_store)