pypy/interpreter/test/test_syntax.py::AppTestSyntaxError::()::test_astbuilder_error_location
self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x7fb98b5a5510>
def test_astbuilder_error_location(self):
program = "(1, 2) += (3, 4)\n"
try:
exec(program)
except SyntaxError as e:
assert e.lineno == 1
> assert e.text == program
E (application-level) AssertionError
[/build_dir/own-linux-x86-64/build/pypy/interpreter/test/test_syntax.py:635]:7: AssertionError
builder: own-linux-x86-64 build #10877+
test: pypy/interpreter/test/test_syntax.py::AppTestSyntaxError::()::test_astbuilder_error_location