Commits

Armin Rigo committed 1a75fb7

Fix.

  • Participants
  • Parent commits d285738

Comments (0)

Files changed (1)

testing/test_parsing.py

     def new_primitive_type(self, name):
         return '<%s>' % name
 
-    def new_array_type(self, itemtype, length):
-        return '<array[%d] of %s>' % (length, itemtype)
+    def new_pointer_type(self, itemtype, is_const_charp):
+        return '<pointer to %s>' % (itemtype,)
 
 class FakeLibrary(object):
     
     ffi.cdef("int pipe(int pipefd[2]);")
     func = ffi.C.pipe
     assert func.name == 'pipe'
-    assert func.args == ['<array[2] of <int>>']
+    assert func.args == ['<pointer to <int>>']
     assert func.result == '<int>'
     assert func.varargs is False