[pypy-svn] r32539 - pypy/dist/pypy/module/_random

cfbolz at codespeak.net cfbolz at codespeak.net
Wed Sep 20 18:45:27 CEST 2006


Author: cfbolz
Date: Wed Sep 20 18:45:26 2006
New Revision: 32539

Modified:
   pypy/dist/pypy/module/_random/interp_random.py
Log:
fix exception type


Modified: pypy/dist/pypy/module/_random/interp_random.py
==============================================================================
--- pypy/dist/pypy/module/_random/interp_random.py	(original)
+++ pypy/dist/pypy/module/_random/interp_random.py	Wed Sep 20 18:45:26 2006
@@ -64,7 +64,7 @@
             raise OperationError(space.w_TypeError, errstring)
         if space.int_w(space.len(w_state)) != rpy_random.N + 1:
             errstring = space.wrap("state vector is the wrong size")
-            raise OperationError(space.w_TypeError, errstring)
+            raise OperationError(space.w_ValueError, errstring)
         w_zero = space.newint(0)
         # independent of platfrom, since the below condition is only
         # true on 32 bit platforms anyway



More information about the Pypy-commit mailing list