Home - Summaries: (main) : (py3.11) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

pypy/interpreter/test/test_syntax.py::AppTestSyntaxError::()::test_grammar_error_location

self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x7fdfa84a0790>

    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 #10880+
test: pypy/interpreter/test/test_syntax.py::AppTestSyntaxError::()::test_grammar_error_location