test case fix
authorStefan Behnel <scoder@users.berlios.de>
Sun, 18 May 2008 10:25:54 +0000 (12:25 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Sun, 18 May 2008 10:25:54 +0000 (12:25 +0200)
tests/run/append.pyx

index 29575aa3f17e9b6dba90c704cf5bed4ee4c4bb57..b73939d331a6e7eaedeb9190e3274e6eda23c84e 100644 (file)
@@ -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)