From 342767aa0cc25dbecf519d33e04d9a791fc34320 Mon Sep 17 00:00:00 2001 From: Siddharth Ravikumar Date: Fri, 3 Apr 2015 11:45:11 -0400 Subject: modded teardown method in tests.events_test.TestEvents. the silo is purged using the deldb method instead of doing a os.remove. modfied: tests/events_test.py --- tests/events_test.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'tests') diff --git a/tests/events_test.py b/tests/events_test.py index 40ff751..2ba375a 100644 --- a/tests/events_test.py +++ b/tests/events_test.py @@ -516,13 +516,9 @@ class TestEvents(object): def teardown(self): """Cleans up things after each test in this class""" - purge_nodedirs(self.config) - - silo_path = path.join(self.config['silo_dir'], 'silo.db') - - if path.exists(silo_path): - os.remove(silo_path) + purge_nodedirs(self.config) + self.silo.db.deldb() purge(self.purge_list) -- cgit v1.2.3