Commit b2a20553 authored by Julien Muchembled's avatar Julien Muchembled

tests: fix NameError when clearing SQLite DB

parent 8bbf5091
...@@ -336,14 +336,14 @@ class NEOCluster(object): ...@@ -336,14 +336,14 @@ class NEOCluster(object):
elif self.adapter == 'SQLite': elif self.adapter == 'SQLite':
if clear_databases: if clear_databases:
for db in self.db_list: for db in self.db_list:
db = self.db_template % db
try: try:
os.remove(self.db_template % db) os.remove(db)
except OSError, e: except OSError, e:
if e.errno != errno.ENOENT: if e.errno != errno.ENOENT:
raise raise
else: else:
neo.lib.logging.debug('%r deleted', neo.lib.logging.debug('%r deleted', db)
db_template % db)
def run(self, except_storages=()): def run(self, except_storages=()):
""" Start cluster processes except some storage nodes """ """ Start cluster processes except some storage nodes """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment