Example #1
0
 def get_call(self, source):
     stmt = Parser(u(source), no_docstr=True).module.statements[0]
     return stmt.expression_list()[0]
Example #2
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()
Example #3
0
 def get_call(self, source):
     stmt = Parser(u(source), no_docstr=True).module.statements[0]
     return stmt.expression_list()[0]
Example #4
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()