Commits

Philip Jenvey committed 5547c48

2to3

Comments (0)

Files changed (2)

pypy/module/__builtin__/test/test_builtin.py

             def __int__(self):
                 return 42
         exc = raises(TypeError, bin, D())
-        assert "index" in exc.value.message
+        assert "index" in str(exc.value)
 
     def test_oct(self):
         class Foo:

pypy/objspace/std/test/test_longobject.py

 
     def test_long_before_string(self):
         class A(str):
-            def __long__(self):
+            def __int__(self):
                 return 42
         assert int(A('abc')) == 42