[pypy-svn] r58954 - pypy/branch/getslice/pypy/translator/test
arigo at codespeak.net
arigo at codespeak.net
Sat Oct 11 11:54:51 CEST 2008
Author: arigo
Date: Sat Oct 11 11:54:50 2008
New Revision: 58954
Modified:
pypy/branch/getslice/pypy/translator/test/test_simplify.py
Log:
More robustness against the ExceptionInfo's __str__ which
might have or not have the str of the captured exception in it.
Modified: pypy/branch/getslice/pypy/translator/test/test_simplify.py
==============================================================================
--- pypy/branch/getslice/pypy/translator/test/test_simplify.py (original)
+++ pypy/branch/getslice/pypy/translator/test/test_simplify.py Sat Oct 11 11:54:50 2008
@@ -200,7 +200,7 @@
transform_dead_op_vars(graph, t)
interp = LLInterpreter(t.rtyper)
e = py.test.raises(LLException, 'interp.eval_graph(graph, [])')
- assert 'ValueError' in str(e)
+ assert 'ValueError' in str(e.value)
class TestDetectListComprehension:
def check(self, f1, expected):
More information about the Pypy-commit
mailing list