[Zodb-checkins] CVS: ZODB3/BDBStorage/tests -
test_autopack.py:1.13.4.1
Jeremy Hylton
cvs-admin at zope.org
Mon Nov 24 13:13:24 EST 2003
Update of /cvs-repository/ZODB3/BDBStorage/tests
In directory cvs.zope.org:/tmp/cvs-serv22081/BDBStorage/tests
Modified Files:
Tag: ZODB3-mvcc-2-branch
test_autopack.py
Log Message:
Make sure _config() accepts read_only everywhere.
=== ZODB3/BDBStorage/tests/test_autopack.py 1.13 => 1.13.4.1 ===
--- ZODB3/BDBStorage/tests/test_autopack.py:1.13 Mon Sep 15 12:29:22 2003
+++ ZODB3/BDBStorage/tests/test_autopack.py Mon Nov 24 13:13:23 2003
@@ -51,12 +51,13 @@
class TestAutopackBase(BerkeleyTestBase):
- def _config(self):
+ def _config(self, read_only=False):
config = BerkeleyConfig()
# Autopack every 1 second, 2 seconds into the past, no classic packs
config.frequency = 1
config.packtime = 2
config.gcpack = 0
+ config.read_only = read_only
return config
def _wait_for_next_autopack(self):
@@ -113,13 +114,14 @@
class TestAutomaticClassicPack(TestAutopackBase):
ConcreteStorage = BDBFullStorage
- def _config(self):
+ def _config(self, read_only=False):
config = BerkeleyConfig()
# Autopack every 1 second, 2 seconds into the past, classic packing
# every time.
config.frequency = 1
config.packtime = 2
config.gcpack = 1
+ config.read_only = read_only
return config
def testAutomaticClassicPack(self):
@@ -195,10 +197,11 @@
class TestMinimalPack(TestAutopackBase):
ConcreteStorage = BDBMinimalStorage
- def _config(self):
+ def _config(self, read_only=False):
config = BerkeleyConfig()
# Autopack every 3 seconds
config.frequency = 3
+ config.read_only = read_only
return config
def testRootUnreachable(self):
More information about the Zodb-checkins
mailing list