Commit 2cb7bf1b authored by Julien Muchembled's avatar Julien Muchembled

qa: do not always use MySQL backend in testPack (neo.tests.zodb)

parent 781b4eb5
...@@ -25,7 +25,7 @@ else: ...@@ -25,7 +25,7 @@ else:
class ZODBTestCase(TestCase): class ZODBTestCase(TestCase):
def setUp(self, cluster_kw={}): def setUp(self):
super(ZODBTestCase, self).setUp() super(ZODBTestCase, self).setUp()
storages = int(os.getenv('NEO_TEST_ZODB_STORAGES', 1)) storages = int(os.getenv('NEO_TEST_ZODB_STORAGES', 1))
kw = { kw = {
...@@ -34,7 +34,6 @@ class ZODBTestCase(TestCase): ...@@ -34,7 +34,6 @@ class ZODBTestCase(TestCase):
'partitions': int(os.getenv('NEO_TEST_ZODB_PARTITIONS', 1)), 'partitions': int(os.getenv('NEO_TEST_ZODB_PARTITIONS', 1)),
'db_list': ['%s%u' % (DB_PREFIX, i) for i in xrange(storages)], 'db_list': ['%s%u' % (DB_PREFIX, i) for i in xrange(storages)],
} }
kw.update(cluster_kw)
if functional: if functional:
kw['temp_dir'] = self.getTempDirectory() kw['temp_dir'] = self.getTempDirectory()
self.neo = NEOCluster(**kw) self.neo = NEOCluster(**kw)
......
...@@ -26,9 +26,6 @@ from . import ZODBTestCase ...@@ -26,9 +26,6 @@ from . import ZODBTestCase
class PackableTests(ZODBTestCase, StorageTestBase, class PackableTests(ZODBTestCase, StorageTestBase,
PackableStorageWithOptionalGC, PackableUndoStorage): PackableStorageWithOptionalGC, PackableUndoStorage):
def setUp(self):
super(PackableTests, self).setUp(cluster_kw={'adapter': 'MySQL'})
checkPackAllRevisions = expectedFailure()( checkPackAllRevisions = expectedFailure()(
PackableStorageWithOptionalGC.checkPackAllRevisions) PackableStorageWithOptionalGC.checkPackAllRevisions)
checkPackUndoLog = expectedFailure()(PackableUndoStorage.checkPackUndoLog) checkPackUndoLog = expectedFailure()(PackableUndoStorage.checkPackUndoLog)
......
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