summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSiddharth Ravikumar <sravik@bgsu.edu>2015-02-20 09:04:07 -0500
committerSiddharth Ravikumar <sravik@bgsu.edu>2015-02-20 09:04:07 -0500
commitcf1ae1096bda6afba8f4cc1fd0a58432d92fcae6 (patch)
treeb7cd5d0f4ab39b8250fb08be4a6e9983f9ad422f /tests
parentef9eaa1848954d6316572871bd9c641d34ab45da (diff)
modded tests/events_test.TestEvents.teardown method
This method now checks if the `silo.db' exists before deleting it.
Diffstat (limited to 'tests')
-rw-r--r--tests/events_test.py4
1 files changed, 3 insertions, 1 deletions
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):