mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
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)
This commit is contained in:
parent
14c6b4626f
commit
64029986bc
2 changed files with 10 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue