Commit 6074162a authored by Alex Gaynor's avatar Alex Gaynor

Try to prefer the py3k friendly syntax

parent badda21b
......@@ -129,7 +129,7 @@ def interpret_raises(exc, func, values, view='auto', viewbefore='auto',
info = py.test.raises(LLException, "interp.eval_graph(graph, values)")
try:
got = interp.find_exception(info.value)
except ValueError, message:
except ValueError as message:
got = 'None %r' % message
assert got is exc, "wrong exception type, expected %r got %r" % (exc, got)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment