From: Stefan Behnel Date: Thu, 11 Nov 2010 06:48:55 +0000 (+0100) Subject: extended test case X-Git-Tag: 0.14.alpha0~195 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ea3993e22573fb5609f98623b1ad19c889362693;p=cython.git extended test case --- diff --git a/tests/run/cython3.pyx b/tests/run/cython3.pyx index 0c59349c..7c1c3455 100644 --- a/tests/run/cython3.pyx +++ b/tests/run/cython3.pyx @@ -57,6 +57,13 @@ def list_comp(): assert x == 'abc' # don't leak in Py3 code return result +def list_comp_unknown_type(l): + """ + >>> list_comp_unknown_type(range(5)) + [0, 4, 8] + """ + return [x*2 for x in l if x % 2 == 0] + def set_comp(): """ >>> sorted(set_comp())