mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-09 23:34:45 +08:00
fixes jedi-vim issue 9 - parser error in with statement
This commit is contained in:
@@ -161,6 +161,10 @@ class TestRegression(unittest.TestCase):
|
||||
s = "import time; abc = time; abc.sleep("
|
||||
assert check(self.get_in_function_call(s), 'sleep', 0)
|
||||
|
||||
# jedi-vim #9
|
||||
s = "with open("
|
||||
assert check(self.get_in_function_call(s), 'open', 0)
|
||||
|
||||
def test_add_dynamic_mods(self):
|
||||
api.settings.additional_dynamic_modules = ['dynamic.py']
|
||||
# Fictional module that defines a function.
|
||||
|
||||
Reference in New Issue
Block a user