Commits

Philip Jenvey committed 9391cb2

BaseException.message is dead

  • Participants
  • Parent commits ab1fa8e
  • Branches py3k

Comments (0)

Files changed (2)

File pypy/objspace/std/test/test_floatobject.py

         try:
             float('abcdef')
         except ValueError as e:
-            assert 'abcdef' in e.message
+            assert 'abcdef' in str(e)
         else:
             assert False, 'did not raise'
 

File pypy/objspace/std/test/test_longobject.py

         try:
             int('hello àèìò')
         except ValueError as e:
-            assert 'hello àèìò' in e.message
+            assert 'hello àèìò' in str(e)
         else:
             assert False, 'did not raise'