From: Robert Bradshaw Date: Fri, 3 Apr 2009 07:34:33 +0000 (-0700) Subject: Tests for #230 X-Git-Tag: 0.11.1.alpha X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a7b398b129ccb3114b4c71dceb196df953ae6b51;p=cython.git Tests for #230 --- diff --git a/tests/bugs/pxd_override_T230.pxd b/tests/bugs/pxd_override_T230.pxd new file mode 100644 index 00000000..c07a9053 --- /dev/null +++ b/tests/bugs/pxd_override_T230.pxd @@ -0,0 +1,5 @@ +cdef class A: + cpdef foo(self) + +cdef class B(A): + cpdef foo(self) diff --git a/tests/bugs/pxd_override_T230.py b/tests/bugs/pxd_override_T230.py new file mode 100644 index 00000000..b0f1bfe4 --- /dev/null +++ b/tests/bugs/pxd_override_T230.py @@ -0,0 +1,7 @@ +class A: + def foo(self): + return "A" + +class B(A): + def foo(self): + return "B"