From 7f55c7d1589c868d1f094d1f589c7e04fd2a413d Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 18 May 2008 12:25:54 +0200 Subject: [PATCH] test case fix --- tests/run/append.pyx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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) -- 2.26.2