1
0
forked from VimPlug/jedi

Tell sith that goto_assignments is now goto

This commit is contained in:
Peter Law
2020-04-26 01:05:04 +01:00
committed by Dave Halter
parent 4d9cb083ac
commit 8c3fd99009

View File

@@ -123,7 +123,7 @@ class TestCase(object):
with open(self.path) as f: with open(self.path) as f:
self.script = jedi.Script(f.read(), path=self.path) self.script = jedi.Script(f.read(), path=self.path)
kwargs = {} kwargs = {}
if self.operation == 'goto_assignments': if self.operation == 'goto':
kwargs['follow_imports'] = random.choice([False, True]) kwargs['follow_imports'] = random.choice([False, True])
self.objects = getattr(self.script, self.operation)(self.line, self.column, **kwargs) self.objects = getattr(self.script, self.operation)(self.line, self.column, **kwargs)