Commit 3e799f2e authored by Stefan Behnel's avatar Stefan Behnel

fix test

parent 8e051569
...@@ -26,12 +26,12 @@ def list_genexpr_iterable_lookup(): ...@@ -26,12 +26,12 @@ def list_genexpr_iterable_lookup():
def genexpr_iterable_in_closure(): def genexpr_iterable_in_closure():
""" """
>>> genexpr_iterable_in_closure() >>> genexpr_iterable_in_closure()
[0, 4, 8] ['aa', 'cc']
""" """
x = 'abc' x = 'abc'
def f(): def f():
return x return x
result = list( x*2 for x in x if x % 2 == 0 ) result = list( x*2 for x in x if x != 'b' )
assert x == 'abc' # don't leak in Py3 code assert x == 'abc' # don't leak in Py3 code
assert f() == 'abc' # don't leak in Py3 code assert f() == 'abc' # don't leak in Py3 code
return result return result
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment