diff options
author | Siddharth Ravikumar <sravik@bgsu.edu> | 2015-04-03 11:45:11 -0400 |
---|---|---|
committer | Siddharth Ravikumar <sravik@bgsu.edu> | 2015-04-03 11:45:11 -0400 |
commit | 342767aa0cc25dbecf519d33e04d9a791fc34320 (patch) | |
tree | be43e2558630b0e68a2b5e36d7c0b4f4c5d76248 /tests | |
parent | 3ec2013eabf49ed864efcd9ae04ea8ccb63a6816 (diff) |
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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/events_test.py | 8 |
1 files changed, 2 insertions, 6 deletions
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) |