예제 #1
0
 def get_call(self, source):
     stmt = Parser(u(source), no_docstr=True).module.statements[0]
     return stmt.expression_list()[0]
예제 #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()
예제 #3
0
 def get_call(self, source):
     stmt = Parser(u(source), no_docstr=True).module.statements[0]
     return stmt.expression_list()[0]
예제 #4
0
파일: test_parser.py 프로젝트: Hylen/jedi
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()