Author: Armin Rigo <[email protected]>
Branch:
Changeset: r80041:c6ffc38a6c33
Date: 2015-10-08 11:18 +0200
http://bitbucket.org/pypy/pypy/changeset/c6ffc38a6c33/
Log: fix (we're supposed to call str(e.value); I'm not sure why str(e)
works too, but it doesn't for me)
diff --git a/rpython/jit/codewriter/test/test_flatten.py
b/rpython/jit/codewriter/test/test_flatten.py
--- a/rpython/jit/codewriter/test/test_flatten.py
+++ b/rpython/jit/codewriter/test/test_flatten.py
@@ -576,7 +576,7 @@
return ovfcheck(i + j)
err = py.test.raises(Exception, "self.encoding_test(f, [7, 2], '',"
"transform=True, liveness=True)")
- assert "ovfcheck()" in str(err)
+ assert "ovfcheck()" in str(err.value)
def test_ovfcheck_reraise(self):
def f(i, j):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit