Author: Matti Picus <[email protected]>
Branch: py3.5
Changeset: r95521:528771eac6b5
Date: 2018-12-24 09:45 +0200
http://bitbucket.org/pypy/pypy/changeset/528771eac6b5/

Log:    fix exception type

diff --git a/pypy/objspace/std/smalllongobject.py 
b/pypy/objspace/std/smalllongobject.py
--- a/pypy/objspace/std/smalllongobject.py
+++ b/pypy/objspace/std/smalllongobject.py
@@ -379,7 +379,7 @@
 def _pow(space, iv, iw, iz):
     if iw < 0:
         if iz != 0:
-            raise oefmt(space.w_TypeError,
+            raise oefmt(space.w_ValueError,
                         "pow() 2nd argument cannot be negative when 3rd "
                         "argument specified")
         raise ValueError
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to