rever changes
This commit is contained in:
parent
7a076e92fe
commit
a38bcb2f04
|
@ -2,13 +2,7 @@
|
|||
BMConfigParser class definition and default configuration settings
|
||||
"""
|
||||
|
||||
# import ConfigParser
|
||||
try:
|
||||
from configparser import ConfigParser
|
||||
except ImportError:
|
||||
import ConfigParser
|
||||
|
||||
|
||||
import ConfigParser
|
||||
import os
|
||||
import shutil
|
||||
from datetime import datetime
|
||||
|
|
|
@ -198,7 +198,7 @@ class TestSqlThread(unittest.TestCase):
|
|||
|
||||
# Assertion
|
||||
self.cur.execute('''select * from inventory where objecttype = 'pubkey';''')
|
||||
self.assertNotEqual(self.cur.fetchone(), 1, "Table knownnodes not deleted in versioning 5")
|
||||
self.assertNotEqual(self.cur.fetchone(), 1, "Table inventory not deleted in versioning 4")
|
||||
|
||||
def test_sql_thread_version_3(self):
|
||||
"""
|
||||
|
@ -214,4 +214,4 @@ class TestSqlThread(unittest.TestCase):
|
|||
|
||||
# Assertion
|
||||
self.cur.execute(''' SELECT count(name) FROM sqlite_master WHERE type='table' AND name='inventory_backup' ''')
|
||||
self.assertNotEqual(self.cur.fetchone(), 1, "Table inventory_backup not deleted in versioning 5")
|
||||
self.assertNotEqual(self.cur.fetchone(), 1, "Table inventory_backup not deleted in versioning 2")
|
||||
|
|
Loading…
Reference in New Issue
Block a user