Author: Armin Rigo <ar...@tunes.org> Branch: ffi-backend Changeset: r55816:029a738b9e42 Date: 2012-06-25 16:51 +0200 http://bitbucket.org/pypy/pypy/changeset/029a738b9e42/
Log: Fix next test diff --git a/pypy/module/_ffi_backend/ctypeobj.py b/pypy/module/_ffi_backend/ctypeobj.py --- a/pypy/module/_ffi_backend/ctypeobj.py +++ b/pypy/module/_ffi_backend/ctypeobj.py @@ -408,7 +408,9 @@ ob = space.interpclass_w(w_ob) if isinstance(ob, cdataobj.W_CData): if not isinstance(ob.ctype, W_CTypePrimitive): - xxx + raise operationerrfmt(space.w_TypeError, + "cannot cast ctype '%s' to ctype '%s'", + ob.ctype.name, self.name) w_ob = ob.convert_to_object() # if space.isinstance_w(w_ob, space.w_str): _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit