Author: Armin Rigo <ar...@tunes.org> Branch: arm-longlong Changeset: r73247:02f54f076c4f Date: 2014-08-31 19:50 +0200 http://bitbucket.org/pypy/pypy/changeset/02f54f076c4f/
Log: better error message diff --git a/rpython/jit/backend/test/runner_test.py b/rpython/jit/backend/test/runner_test.py --- a/rpython/jit/backend/test/runner_test.py +++ b/rpython/jit/backend/test/runner_test.py @@ -2901,10 +2901,11 @@ getter_ptr(my_arg) got.append(my_arg[0]) lltype.free(my_arg, flavor='raw') - different_values = ['%r != %r' % (a, b) - for a, b in zip(got, expected) - if a != b] - assert got == expected, ', '.join(different_values) + different_values = ['x%d: got %r, expected %r' % (i, a, b) + for i, (a, b) in enumerate(zip(got, expected)) + if a != b] + assert got == expected, '\n'.join( + ['bad args, signature %r' % codes[1:]] + different_values) def test_guard_not_invalidated(self): _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit