summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_bsddb.py
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2006-04-12 20:35:02 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2006-04-12 20:35:02 (GMT)
commit64029986bc8b7c7eac7bc6f6265d3d3163d8bb06 (patch)
treeaa2f3f35626b07b603a067ee5cd46e13b623a2f9 /Lib/test/test_bsddb.py
parent14c6b4626f4e06a28a043bc41737389cd3951181 (diff)
downloadcpython-64029986bc8b7c7eac7bc6f6265d3d3163d8bb06.zip
cpython-64029986bc8b7c7eac7bc6f6265d3d3163d8bb06.tar.gz
cpython-64029986bc8b7c7eac7bc6f6265d3d3163d8bb06.tar.bz2
Fixes bug #1117761
bsddb.*open() methods cachesize parameter wouldn't work (raised an internal bsddb.db exception when it was given). The set_cachesize call needed to be moved from the DB object to the DBEnv since the env was introduced to allow for threading. (will backport to 2.4)
Diffstat (limited to 'Lib/test/test_bsddb.py')
-rwxr-xr-xLib/test/test_bsddb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_bsddb.py b/Lib/test/test_bsddb.py
index 7a0c97c..513e541 100755
--- a/Lib/test/test_bsddb.py
+++ b/Lib/test/test_bsddb.py
@@ -14,7 +14,7 @@ class TestBSDDB(unittest.TestCase):
openflag = 'c'
def setUp(self):
- self.f = self.openmethod[0](self.fname, self.openflag)
+ self.f = self.openmethod[0](self.fname, self.openflag, cachesize=32768)
self.d = dict(q='Guido', w='van', e='Rossum', r='invented', t='Python', y='')
for k, v in self.d.iteritems():
self.f[k] = v