Author: Ronan Lamy <[email protected]>
Branch: py3.5
Changeset: r88938:3b409d9587a2
Date: 2016-12-07 13:45 +0000
http://bitbucket.org/pypy/pypy/changeset/3b409d9587a2/
Log: Changed from TypeError to ValueError in 3.5
diff --git a/pypy/objspace/std/longobject.py b/pypy/objspace/std/longobject.py
--- a/pypy/objspace/std/longobject.py
+++ b/pypy/objspace/std/longobject.py
@@ -187,7 +187,7 @@
return space.w_NotImplemented
if w_exponent.asbigint().sign < 0:
- raise oefmt(space.w_TypeError,
+ raise oefmt(space.w_ValueError,
"pow() 2nd argument cannot be negative when 3rd "
"argument specified")
try:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit