From cf1ae1096bda6afba8f4cc1fd0a58432d92fcae6 Mon Sep 17 00:00:00 2001 From: Siddharth Ravikumar Date: Fri, 20 Feb 2015 09:04:07 -0500 Subject: modded tests/events_test.TestEvents.teardown method This method now checks if the `silo.db' exists before deleting it. --- tests/events_test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/events_test.py b/tests/events_test.py index 87d36a0..a6a941b 100644 --- a/tests/events_test.py +++ b/tests/events_test.py @@ -227,7 +227,9 @@ class TestEvents(object): purge_nodedirs(self.config) silo_path = path.join(self.config['silo_dir'], 'silo.db') - os.remove(silo_path) + + if path.exists(silo_path): + os.remove(silo_path) @classmethod def teardown_class(self): -- cgit v1.2.3