mirror of
https://github.com/davidhalter/jedi.git
synced 2026-11-01 18:22:27 +08:00
Merge pull request #232 from tkf/unicode-has-no-generate_call_path
Fix: 'unicode' object has no attribute 'generate_call_path'
This commit is contained in:
commit
b0116b0d7c
3 files changed
+15
-2
No files matched your search
@@ -329,6 +329,14 @@ class TestRegression(TestBase):
|
||||
defs = self.goto_definitions("assert")
|
||||
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):
|
||||
s = "import multiprocessing.dummy; multiprocessing.dummy"
|
||||
g = self.goto_assignments(s)
|
||||
|
||||
Reference in new issue
Block a user