diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2003-07-09 05:33:14 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2003-07-09 05:33:14 (GMT) |
commit | ad30fa03a4d8dc163141a5e73be52760f15864c0 (patch) | |
tree | 88f8ea2103c964f8d8482ce60f0606bc692ca3c7 /Lib/bsddb/test | |
parent | df35beed4052211caed56846e0cda588c593f4f7 (diff) | |
download | cpython-ad30fa03a4d8dc163141a5e73be52760f15864c0.zip cpython-ad30fa03a4d8dc163141a5e73be52760f15864c0.tar.gz cpython-ad30fa03a4d8dc163141a5e73be52760f15864c0.tar.bz2 |
fix to work on python <= 2.1
Diffstat (limited to 'Lib/bsddb/test')
-rw-r--r-- | Lib/bsddb/test/test_join.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/bsddb/test/test_join.py b/Lib/bsddb/test/test_join.py index 08784ac..f434c54 100644 --- a/Lib/bsddb/test/test_join.py +++ b/Lib/bsddb/test/test_join.py @@ -72,13 +72,13 @@ class JoinTestCase(unittest.TestCase): # create and populate primary index priDB = db.DB(self.env) priDB.open(self.filename, "primary", db.DB_BTREE, db.DB_CREATE) - map(lambda t: apply(priDB.put, t), ProductIndex) + map(lambda t, priDB=priDB: apply(priDB.put, t), ProductIndex) # create and populate secondary index secDB = db.DB(self.env) secDB.set_flags(db.DB_DUP | db.DB_DUPSORT) secDB.open(self.filename, "secondary", db.DB_BTREE, db.DB_CREATE) - map(lambda t: apply(secDB.put, t), ColorIndex) + map(lambda t, secDB=secDB: apply(secDB.put, t), ColorIndex) sCursor = None jCursor = None |