mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
bugfix: when log_archive was called with the DB_ARCH_REMOVE flag present
in BerkeleyDB >= 4.2 it tried to construct a list out of an uninitialized char **log_list. feature: export the DB_ARCH_REMOVE flag by name in the module on BerkeleyDB >= 4.2.
This commit is contained in:
parent
1985ff76ca
commit
3dd20022ac
2 changed files with 12 additions and 5 deletions
|
@ -665,6 +665,9 @@ class BasicTransactionTestCase(BasicTestCase):
|
|||
for log in logs:
|
||||
if verbose:
|
||||
print 'log file: ' + log
|
||||
if db.version >= (4,2):
|
||||
logs = self.env.log_archive(db.DB_ARCH_REMOVE)
|
||||
assert not logs
|
||||
|
||||
self.txn = self.env.txn_begin()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue