mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-15 06:51:07 +08:00
Added (failing) regression test for davidhalter/jedi-vim#94
This commit is contained in:
1 parent
1735bdb3c3
commit
3ab2b0a244
1 file changed
+9
@@ -259,6 +259,15 @@ class TestRegression(TestBase):
|
||||
else:
|
||||
assert len(self.complete(s, (1, len(code))))
|
||||
|
||||
def test_unicode_attribute(self):
|
||||
""" github jedi-vim issue #94 """
|
||||
s1 = utf8('#-*- coding: utf-8 -*-\nclass Person():\n name = "e"\n\nPerson().name.')
|
||||
completions1 = self.complete(s1)
|
||||
assert 'strip' in [c.word for c in completions1]
|
||||
s2 = utf8('#-*- coding: utf-8 -*-\nclass Person():\n name = "é"\n\nPerson().name.')
|
||||
completions = self.complete(s2)
|
||||
assert 'strip' in [c.word for c in completions2]
|
||||
|
||||
def test_os_nowait(self):
|
||||
""" github issue #45 """
|
||||
s = self.complete("import os; os.P_")
|
||||
|
||||
Reference in new issue
Block a user