[pypy-svn] r76420 - pypy/branch/fast-ctypes/pypy/module/jitffi

getxsick at codespeak.net getxsick at codespeak.net
Sat Jul 31 19:17:01 CEST 2010


Author: getxsick
Date: Sat Jul 31 19:16:59 2010
New Revision: 76420

Modified:
   pypy/branch/fast-ctypes/pypy/module/jitffi/interp_jitffi.py
Log:
raise the proper exception


Modified: pypy/branch/fast-ctypes/pypy/module/jitffi/interp_jitffi.py
==============================================================================
--- pypy/branch/fast-ctypes/pypy/module/jitffi/interp_jitffi.py	(original)
+++ pypy/branch/fast-ctypes/pypy/module/jitffi/interp_jitffi.py	Sat Jul 31 19:16:59 2010
@@ -84,8 +84,9 @@
                 elif self.rget.args_type[i] == 'f':
                     self.rget.push_float(space.float_w(w_arg))
                 else:
+                    # should never happen (raised earlier)
                     raise OperationError(
-                            space.w_TypeError,
+                            space.w_ValueError,
                             space.wrap('Unsupported type of argument: %s'
                                         % self.rget.args_type[0]))
                 i += 1



More information about the Pypy-commit mailing list