mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
* support DBEnv.log_stat() method on BerkeleyDB >= 4.0 [patch #1494885]
This commit is contained in:
parent
58ce5bc14c
commit
76a82e89ab
3 changed files with 78 additions and 0 deletions
|
@ -659,6 +659,13 @@ class BasicTransactionTestCase(BasicTestCase):
|
|||
except db.DBIncompleteError:
|
||||
pass
|
||||
|
||||
if db.version() >= (4,0):
|
||||
statDict = self.env.log_stat(0);
|
||||
assert statDict.has_key('magic')
|
||||
assert statDict.has_key('version')
|
||||
assert statDict.has_key('cur_file')
|
||||
assert statDict.has_key('region_nowait')
|
||||
|
||||
# must have at least one log file present:
|
||||
logs = self.env.log_archive(db.DB_ARCH_ABS | db.DB_ARCH_LOG)
|
||||
assert logs != None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue