Tests for #230 0.11.1.alpha
authorRobert Bradshaw <robertwb@math.washington.edu>
Fri, 3 Apr 2009 07:34:33 +0000 (00:34 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Fri, 3 Apr 2009 07:34:33 +0000 (00:34 -0700)
tests/bugs/pxd_override_T230.pxd [new file with mode: 0644]
tests/bugs/pxd_override_T230.py [new file with mode: 0644]

diff --git a/tests/bugs/pxd_override_T230.pxd b/tests/bugs/pxd_override_T230.pxd
new file mode 100644 (file)
index 0000000..c07a905
--- /dev/null
@@ -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 (file)
index 0000000..b0f1bfe
--- /dev/null
@@ -0,0 +1,7 @@
+class A:
+    def foo(self):
+        return "A"
+
+class B(A):
+    def foo(self):
+        return "B"