def get_call(self, source): stmt = Parser(u(source), no_docstr=True).module.statements[0] return stmt.expression_list()[0]
def test_incomplete_list_comprehension(): """ Shouldn't raise an error, same bug as #418. """ s = Parser(u('(1 for def')).module.statements[0] assert s.expression_list()