fix test issue with python 2.7
This commit is contained in:
1 parent
ecf9043d97
commit
06bae0e835
1 file changed
+2
-1
@@ -1,7 +1,8 @@
|
|||||||
from jedi.parser import Parser
|
from jedi.parser import Parser
|
||||||
|
from jedi._compatibility import u
|
||||||
|
|
||||||
|
|
||||||
def test_import_is_nested():
|
def test_import_is_nested():
|
||||||
imp = Parser('import ').module.imports[0]
|
imp = Parser(u('import ')).module.imports[0]
|
||||||
# should not raise an error, even if it's not a complete import
|
# should not raise an error, even if it's not a complete import
|
||||||
assert not imp.is_nested()
|
assert not imp.is_nested()
|
||||||
Reference in new issue
Block a user