Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r63848:9391cb2a1566
Date: 2013-05-04 10:55 -0700
http://bitbucket.org/pypy/pypy/changeset/9391cb2a1566/

Log:    BaseException.message is dead

diff --git a/pypy/objspace/std/test/test_floatobject.py 
b/pypy/objspace/std/test/test_floatobject.py
--- a/pypy/objspace/std/test/test_floatobject.py
+++ b/pypy/objspace/std/test/test_floatobject.py
@@ -455,7 +455,7 @@
         try:
             float('abcdef')
         except ValueError as e:
-            assert 'abcdef' in e.message
+            assert 'abcdef' in str(e)
         else:
             assert False, 'did not raise'
 
diff --git a/pypy/objspace/std/test/test_longobject.py 
b/pypy/objspace/std/test/test_longobject.py
--- a/pypy/objspace/std/test/test_longobject.py
+++ b/pypy/objspace/std/test/test_longobject.py
@@ -340,7 +340,7 @@
         try:
             int('hello &#224;&#232;&#236;&#242;')
         except ValueError as e:
-            assert 'hello &#224;&#232;&#236;&#242;' in e.message
+            assert 'hello &#224;&#232;&#236;&#242;' in str(e)
         else:
             assert False, 'did not raise'
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to