Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r58122:1abae2e871af
Date: 2012-10-15 12:03 -0700
http://bitbucket.org/pypy/pypy/changeset/1abae2e871af/

Log:    fix for py3 map

diff --git a/pypy/module/operator/test/test_operator.py 
b/pypy/module/operator/test/test_operator.py
--- a/pypy/module/operator/test/test_operator.py
+++ b/pypy/module/operator/test/test_operator.py
@@ -31,7 +31,7 @@
         assert operator.attrgetter('x','z','y')(a) == ('X', 'Z', 'Y')
         raises(TypeError, operator.attrgetter('x', (), 'y'), a)
 
-        data = map(str, range(20))
+        data = list(map(str, range(20)))
         assert operator.itemgetter(2,10,5)(data) == ('2', '10', '5')
         raises(TypeError, operator.itemgetter(2, 'x', 5), data)
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to