projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c006cc2
)
add failing test case
author
Stefan Behnel
<stefan_ml@behnel.de>
Thu, 3 Jan 2013 06:27:49 +0000
(07:27 +0100)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Thu, 3 Jan 2013 06:27:49 +0000
(07:27 +0100)
tests/run/genexpr_iterable_lookup_T600.pyx
patch
|
blob
|
history
diff --git
a/tests/run/genexpr_iterable_lookup_T600.pyx
b/tests/run/genexpr_iterable_lookup_T600.pyx
index
46cda79
..
6a71eda
100644
(file)
--- a/
tests/run/genexpr_iterable_lookup_T600.pyx
+++ b/
tests/run/genexpr_iterable_lookup_T600.pyx
@@
-18,6
+18,7
@@
def list_genexpr_iterable_lookup():
assert x == (0,1,2,3,4,5)
return result
+
#@cython.test_assert_path_exists('//ComprehensionNode')
#@cython.test_fail_if_path_exists('//SingleAssignmentNode//SimpleCallNode')
def genexpr_iterable_in_closure():
@@
-32,3
+33,11
@@
def genexpr_iterable_in_closure():
assert x == 'abc' # don't leak in Py3 code
assert f() == 'abc' # don't leak in Py3 code
return result
+
+
+def genexpr_in_listcomp(L):
+ """
+ >>> genexpr_in_listcomp( [[1,2,3]]*2 )
+ [[1, 2, 3], [1, 2, 3]]
+ """
+ return [list(d for d in z) for z in L]