make an old test from 'broken' directory usable
authorStefan Behnel <stefan_ml@behnel.de>
Sat, 23 Nov 2013 20:21:44 +0000 (21:21 +0100)
committerStefan Behnel <stefan_ml@behnel.de>
Sat, 23 Nov 2013 20:21:44 +0000 (21:21 +0100)
--HG--
rename : tests/broken/typeofexttype.pyx => tests/run/typeofexttype.pyx

tests/broken/typeofexttype.pyx [deleted file]
tests/run/typeofexttype.pyx [new file with mode: 0644]

diff --git a/tests/broken/typeofexttype.pyx b/tests/broken/typeofexttype.pyx
deleted file mode 100644 (file)
index bd13a7b..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-cdef class Spam:
-    pass
-
-cdef int f() except -1:
-    cdef type t
-    t = Spam
diff --git a/tests/run/typeofexttype.pyx b/tests/run/typeofexttype.pyx
new file mode 100644 (file)
index 0000000..3aa60ae
--- /dev/null
@@ -0,0 +1,14 @@
+# mode: run
+# tag: exttype
+
+
+cdef class Spam:
+    pass
+
+
+def test():
+    """
+    >>> test()
+    """
+    cdef type t
+    t = Spam