summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2006-06-05 00:31:01 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2006-06-05 00:31:01 (GMT)
commit3dd20022ac3da63c4fe867a773d623e4fa1fce04 (patch)
tree5487ab20d2e69684d9ebbde01de91cdd78f09c7a /Lib
parent1985ff76ca757d0b6baf80725c405ffc91cc551a (diff)
downloadcpython-3dd20022ac3da63c4fe867a773d623e4fa1fce04.zip
cpython-3dd20022ac3da63c4fe867a773d623e4fa1fce04.tar.gz
cpython-3dd20022ac3da63c4fe867a773d623e4fa1fce04.tar.bz2
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.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/bsddb/test/test_basics.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/bsddb/test/test_basics.py b/Lib/bsddb/test/test_basics.py
index 24c4038..92cad06 100644
--- a/Lib/bsddb/test/test_basics.py
+++ b/Lib/bsddb/test/test_basics.py
@@ -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()