extended test case
authorStefan Behnel <scoder@users.berlios.de>
Thu, 11 Nov 2010 06:48:55 +0000 (07:48 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Thu, 11 Nov 2010 06:48:55 +0000 (07:48 +0100)
tests/run/cython3.pyx

index 0c59349cf60d5b2c8abe1f8ac7b2d2b6a6abacc8..7c1c3455814d14afd62ef9ee640b26fb8848fb62 100644 (file)
@@ -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())