Author: Alexis Daboville <[email protected]>
Branch: py3k
Changeset: r53456:b42d9c409975
Date: 2012-03-13 16:57 +0000
http://bitbucket.org/pypy/pypy/changeset/b42d9c409975/
Log: Replaced apply by a comprehension list.
Fix: http://buildbot.pypy.org/summary/longrepr?testname=AppTestNeste
dScope.%28%29.test_lambda_in_genexpr&builder=own-
linux-x86-32&build=2061&mod=interpreter.test.test_nestedscope
diff --git a/pypy/interpreter/test/test_nestedscope.py
b/pypy/interpreter/test/test_nestedscope.py
--- a/pypy/interpreter/test/test_nestedscope.py
+++ b/pypy/interpreter/test/test_nestedscope.py
@@ -57,7 +57,7 @@
assert keys == ['h', 'x']
def test_lambda_in_genexpr(self):
- assert eval('map(apply, (lambda: t for t in range(10)))') ==
list(range(10))
+ assert [x() for x in (lambda: x for x in range(10))] == list(range(10))
def test_cell_contents(self):
def f(x):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit