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 àèìò')
except ValueError as e:
- assert 'hello àèìò' in e.message
+ assert 'hello àèìò' in str(e)
else:
assert False, 'did not raise'
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit