From: Stefan Behnel Date: Sun, 18 May 2008 10:25:54 +0000 (+0200) Subject: test case fix X-Git-Tag: 0.9.8rc1~11^2~10^2~15^2~33 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7f55c7d1589c868d1f094d1f589c7e04fd2a413d;p=cython.git test case fix --- diff --git a/tests/run/append.pyx b/tests/run/append.pyx index 29575aa3..b73939d3 100644 --- a/tests/run/append.pyx +++ b/tests/run/append.pyx @@ -21,16 +21,19 @@ None [1, 2, (3, 4), 5, 6] """ +cdef extern from "Python.h": + ctypedef class __builtin__.list [ object PyListObject ]: + pass + class A: def append(self, x): print u"appending" return x -class B(list): +cdef class B(list): def append(self, *args): - append = super(B, self).append for arg in args: - append(arg) + list.append(self, arg) def test_append(L): print L.append(1)