From a7b398b129ccb3114b4c71dceb196df953ae6b51 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Fri, 3 Apr 2009 00:34:33 -0700 Subject: [PATCH] Tests for #230 --- tests/bugs/pxd_override_T230.pxd | 5 +++++ tests/bugs/pxd_override_T230.py | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100644 tests/bugs/pxd_override_T230.pxd create mode 100644 tests/bugs/pxd_override_T230.py 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" -- 2.26.2