mirror of
https://github.com/davidhalter/jedi.git
synced 2026-08-12 10:14:36 +08:00
Small fixes to make the tests pass again.
This commit is contained in:
+2
-1
@@ -184,7 +184,8 @@ class IntegrationTestCase(object):
|
||||
def definition(correct, correct_start, path):
|
||||
should_be = set()
|
||||
for match in re.finditer('(?:[^ ]+)', correct):
|
||||
parser = Parser(load_grammar(), match.string, start_symbol='eval_input')
|
||||
string = match.group(0)
|
||||
parser = Parser(load_grammar(), string, start_symbol='eval_input')
|
||||
parser.position_modifier.line = self.line_nr
|
||||
element = parser.get_parsed_node()
|
||||
element.parent = script._parser.user_scope()
|
||||
|
||||
Reference in New Issue
Block a user