From ea3993e22573fb5609f98623b1ad19c889362693 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 11 Nov 2010 07:48:55 +0100 Subject: [PATCH] extended test case --- tests/run/cython3.pyx | 7 +++++++ 1 file changed, 7 insertions(+) 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()) -- 2.26.2