[pypy-svn] r50570 - pypy/branch/applevel-ctypes2/pypy/module/_ffi
fijal at codespeak.net
fijal at codespeak.net
Sun Jan 13 22:21:20 CET 2008
Author: fijal
Date: Sun Jan 13 22:21:19 2008
New Revision: 50570
Modified:
pypy/branch/applevel-ctypes2/pypy/module/_ffi/interp_ffi.py
Log:
(arigo, fijal) ctypes expect different type
Modified: pypy/branch/applevel-ctypes2/pypy/module/_ffi/interp_ffi.py
==============================================================================
--- pypy/branch/applevel-ctypes2/pypy/module/_ffi/interp_ffi.py (original)
+++ pypy/branch/applevel-ctypes2/pypy/module/_ffi/interp_ffi.py Sun Jan 13 22:21:19 2008
@@ -232,7 +232,7 @@
elif tp == "c":
s = space.str_w(w_arg)
if len(s) != 1:
- raise OperationError(space.w_ValueError, w(
+ raise OperationError(space.w_TypeError, w(
"Expected string of length one as character"))
val = s[0]
push_func(add_arg, argdesc, val)
More information about the Pypy-commit
mailing list