forked from VimPlug/jedi
Add failing test: test_goto_assignments_keyword
This commit is contained in:
@@ -329,6 +329,14 @@ class TestRegression(TestBase):
|
|||||||
defs = self.goto_definitions("assert")
|
defs = self.goto_definitions("assert")
|
||||||
assert len(defs) == 1
|
assert len(defs) == 1
|
||||||
|
|
||||||
|
def test_goto_assignments_keyword(self):
|
||||||
|
"""
|
||||||
|
Bug: goto assignments on ``in`` used to raise AttributeError::
|
||||||
|
|
||||||
|
'unicode' object has no attribute 'generate_call_path'
|
||||||
|
"""
|
||||||
|
self.goto_assignments('in')
|
||||||
|
|
||||||
def test_goto_following_on_imports(self):
|
def test_goto_following_on_imports(self):
|
||||||
s = "import multiprocessing.dummy; multiprocessing.dummy"
|
s = "import multiprocessing.dummy; multiprocessing.dummy"
|
||||||
g = self.goto_assignments(s)
|
g = self.goto_assignments(s)
|
||||||
|
|||||||
Reference in New Issue
Block a user