From 876888fc392bb3ef17e9128d3ae0b971122e77d8 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 26 Apr 2008 14:38:56 +0200 Subject: [PATCH] simpler test case for extern class subtyping --- tests/compile/pylistsubtype.pyx | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/compile/pylistsubtype.pyx diff --git a/tests/compile/pylistsubtype.pyx b/tests/compile/pylistsubtype.pyx new file mode 100644 index 00000000..fefcade7 --- /dev/null +++ b/tests/compile/pylistsubtype.pyx @@ -0,0 +1,9 @@ +cdef extern from *: + ctypedef class __builtin__.list [ object PyListObject ]: + pass + +cdef class Sub2(list): + cdef char character + +cdef class Sub1(Sub2): + cdef char character -- 2.26.2