[pypy-commit] pypy py3.5: Changed from TypeError to ValueError in 3.5
rlamy
pypy.commits at gmail.com
Wed Dec 7 08:46:50 EST 2016
Author: Ronan Lamy <ronan.lamy at gmail.com>
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:
More information about the pypy-commit
mailing list