mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bsddb module updated to version 4.7.0
This commit is contained in:
parent
9a8af2df23
commit
ca3939cd52
6 changed files with 91 additions and 11 deletions
|
@ -48,4 +48,4 @@ else:
|
|||
from _bsddb import __version__
|
||||
|
||||
if version() < (3, 2, 0):
|
||||
raise ImportError, "correct BerkeleyDB symbols not found. Perhaps python was statically linked with an older version?"
|
||||
raise ImportError, "correct Berkeley DB symbols not found. Perhaps python was statically linked with an older version?"
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
# -- Gregory P. Smith <greg@krypto.org>
|
||||
|
||||
# This provides a simple database table interface built on top of
|
||||
# the Python BerkeleyDB 3 interface.
|
||||
# the Python Berkeley DB 3 interface.
|
||||
#
|
||||
_cvsid = '$Id$'
|
||||
|
||||
|
@ -139,7 +139,7 @@ class bsdTableDB :
|
|||
recover=0, dbflags=0):
|
||||
"""bsdTableDB(filename, dbhome, create=0, truncate=0, mode=0600)
|
||||
|
||||
Open database name in the dbhome BerkeleyDB directory.
|
||||
Open database name in the dbhome Berkeley DB directory.
|
||||
Use keyword arguments when calling this constructor.
|
||||
"""
|
||||
self.db = None
|
||||
|
|
|
@ -110,7 +110,7 @@ class DBSequenceTest(unittest.TestCase):
|
|||
self.assertRaises(db.DBNotFoundError, seq.open,
|
||||
key='id', txn=None, flags=0)
|
||||
|
||||
self.assertRaises(db.DBNotFoundError, seq.stat)
|
||||
self.assertRaises(db.DBInvalidArgError, seq.stat)
|
||||
|
||||
d.close()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue