Author: Manuel Jacob <[email protected]>
Branch: py3.5
Changeset: r89349:6ca32c9a5a9c
Date: 2017-01-04 01:07 +0100
http://bitbucket.org/pypy/pypy/changeset/6ca32c9a5a9c/

Log:    Update test to check for ValueError instead of TypeError.

        This is also what CPython 3.5.2 raises in this case.

diff --git a/pypy/objspace/std/test/test_intobject.py 
b/pypy/objspace/std/test/test_intobject.py
--- a/pypy/objspace/std/test/test_intobject.py
+++ b/pypy/objspace/std/test/test_intobject.py
@@ -150,7 +150,7 @@
         v = f1.descr_pow(self.space, f2, f3)
         assert v.intval == pow(x, y, z)
         f1, f2, f3 = [iobj.W_IntObject(i) for i in (10, -1, 42)]
-        self.space.raises_w(self.space.w_TypeError,
+        self.space.raises_w(self.space.w_ValueError,
                             f1.descr_pow, self.space, f2, f3)
         f1, f2, f3 = [iobj.W_IntObject(i) for i in (10, 5, 0)]
         self.space.raises_w(self.space.w_ValueError,
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to