From 4d6abfb8de17584e8d727b79b9c6593a5855f1ea Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Sun, 10 Mar 2013 01:19:30 +0100 Subject: [PATCH] Fix a failing test in Python 3 --- test/regression.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/regression.py b/test/regression.py index 88802c5f..bab1900c 100755 --- a/test/regression.py +++ b/test/regression.py @@ -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