From b054c8c47f59dc26a2d8a1ac7ec11dd108615bc3 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Thu, 15 Oct 2009 01:42:28 -0700 Subject: [PATCH] Testcase for #411, cpdef temps. --- tests/run/cpdef_temps_T411.pyx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/run/cpdef_temps_T411.pyx diff --git a/tests/run/cpdef_temps_T411.pyx b/tests/run/cpdef_temps_T411.pyx new file mode 100644 index 00000000..aa1bc7d2 --- /dev/null +++ b/tests/run/cpdef_temps_T411.pyx @@ -0,0 +1,21 @@ +__doc__ = """ + >>> A().is_True() + True + >>> A().is_False() + False + + >>> B().is_True() + True + >>> B().is_False() + False +""" + +cdef class A: + cpdef is_True(self): + return True + cpdef is_False(self): + return not self.is_True() + +class B(A): + def is_True(self): + return True -- 2.26.2