From 03c9f035194e7f7c01a65cd6b9293179ea5c3735 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 17 Nov 2013 12:02:36 +0100 Subject: [PATCH] move old list test from broken into tests/compile/ --HG-- rename : tests/broken/builtinlist.pyx => tests/compile/builtinlist.pyx extra : amend_source : 9d1f1806562a676bb13d2fe5472d5a9261fb3b18 --- tests/{broken => compile}/builtinlist.pyx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) rename tests/{broken => compile}/builtinlist.pyx (65%) diff --git a/tests/broken/builtinlist.pyx b/tests/compile/builtinlist.pyx similarity index 65% rename from tests/broken/builtinlist.pyx rename to tests/compile/builtinlist.pyx index 3ad5942..25ba374 100644 --- a/tests/broken/builtinlist.pyx +++ b/tests/compile/builtinlist.pyx @@ -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() -- 2.7.4