pypy/interpreter/test/test_syntax.py::AppTestSyntaxError::()::test_grammar_error_location
self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x7fb98b5a5510>
def test_grammar_error_location(self):
try:
exec("""if 1:
class Foo:
bla
a as e
bar
""")
except SyntaxError as e:
assert e.lineno == 4
> assert e.text.endswith('a as e\n')
E (application-level) AssertionError
[/build_dir/own-linux-x86-64/build/pypy/interpreter/test/test_syntax.py:619]:11: AssertionError
builder: own-linux-x86-64 build #10877+
test: pypy/interpreter/test/test_syntax.py::AppTestSyntaxError::()::test_grammar_error_location