Author: Ronan Lamy <[email protected]>
Branch: py3.5
Changeset: r88957:6c18e63ebf39
Date: 2016-12-07 18:19 +0000
http://bitbucket.org/pypy/pypy/changeset/6c18e63ebf39/
Log: TypeError -> ValueError here too
diff --git a/pypy/objspace/std/intobject.py b/pypy/objspace/std/intobject.py
--- a/pypy/objspace/std/intobject.py
+++ b/pypy/objspace/std/intobject.py
@@ -378,7 +378,7 @@
"""Helper for pow"""
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")
# bounce it, since it always returns float
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit