[Python-3000-checkins] r56155 - python/branches/p3yk/Lib/bsddb/test/test_join.py
neal.norwitz
python-3000-checkins at python.org
Tue Jul 3 07:59:08 CEST 2007
Author: neal.norwitz
Date: Tue Jul 3 07:59:08 2007
New Revision: 56155
Modified:
python/branches/p3yk/Lib/bsddb/test/test_join.py
Log:
Get this test working after converting map to return an iterator
Modified: python/branches/p3yk/Lib/bsddb/test/test_join.py
==============================================================================
--- python/branches/p3yk/Lib/bsddb/test/test_join.py (original)
+++ python/branches/p3yk/Lib/bsddb/test/test_join.py Tue Jul 3 07:59:08 2007
@@ -72,13 +72,13 @@
# create and populate primary index
priDB = db.DB(self.env)
priDB.open(self.filename, "primary", db.DB_BTREE, db.DB_CREATE)
- map(lambda t, priDB=priDB: priDB.put(*t), ProductIndex)
+ [priDB.put(*t) for t in 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, secDB=secDB: secDB.put(*t), ColorIndex)
+ [secDB.put(*t) for t in ColorIndex]
sCursor = None
jCursor = None
More information about the Python-3000-checkins
mailing list