2 # http://python.org/sf/1413192
4 # This test relies on the variable names, see the bug report for details.
5 # The problem was that the env was deallocated prior to the txn.
8 # For Pythons w/distutils and add-on pybsddb
11 # For Python >= 2.3 builtin bsddb distribution
17 env
.open(env_name
, db
.DB_CREATE | db
.DB_INIT_TXN | db
.DB_INIT_MPOOL
)
18 the_txn
= env
.txn_begin()
21 map.open('xxx.db', "p", db
.DB_HASH
, db
.DB_CREATE
, 0666, txn
=the_txn
)