move old list test from broken into tests/compile/
authorStefan Behnel <stefan_ml@behnel.de>
Sun, 17 Nov 2013 11:02:36 +0000 (12:02 +0100)
committerStefan Behnel <stefan_ml@behnel.de>
Sun, 17 Nov 2013 11:02:36 +0000 (12:02 +0100)
--HG--
rename : tests/broken/builtinlist.pyx => tests/compile/builtinlist.pyx
extra : amend_source : 9d1f1806562a676bb13d2fe5472d5a9261fb3b18

tests/compile/builtinlist.pyx [moved from tests/broken/builtinlist.pyx with 65% similarity]

similarity index 65%
rename from tests/broken/builtinlist.pyx
rename to tests/compile/builtinlist.pyx
index 3ad5942..25ba374 100644 (file)
@@ -1,6 +1,8 @@
+# mode: compile
+
 cdef int f() except -1:
     cdef list l
-    cdef object x, y, z
+    cdef object x = (), y = (1,), z
     z = list
     l = list(x)
     l = list(*y)
@@ -10,3 +12,8 @@ cdef int f() except -1:
     l.sort()
     l.reverse()
     z = l.as_tuple()
+    return z is not None
+
+
+def test():
+    f()