Fix a failing test in Python 3

This commit is contained in:
Takafumi Arakaki
2013-03-10 01:19:30 +01:00
parent 1eae32c182
commit 4d6abfb8de

View File

@@ -434,7 +434,9 @@ class TestFeature(TestBase):
def test_keyword_full_name_should_be_none(self):
"""issue #94"""
from jedi.keywords import Keyword
# Using `from jedi.keywords import Keyword` here does NOT work
# in Python 3. This is due to the import hack jedi using.
Keyword = api_classes.keywords.Keyword
d = api_classes.Definition(Keyword('(', (0, 0)))
assert d.full_name is None