Commits

Armin Rigo  committed 83c1a78

Fix

  • Participants
  • Parent commits e2d0cba
  • Branches ffi-backend

Comments (0)

Files changed (1)

File pypy/module/_cffi_backend/ctypeobj.py

                              space.wrap("expected a pointer or array ctype"))
 
     def cast(self, w_ob):
-        raise NotImplementedError
+        space = self.space
+        raise operationerrfmt(space.w_TypeError,
+                              "cannot cast to '%s'", self.name)
 
     def int(self, cdata):
         space = self.space