mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 23:04:48 +08:00
fix test issue with python 2.7
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
from jedi.parser import Parser
|
||||
from jedi._compatibility import u
|
||||
|
||||
|
||||
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
|
||||
assert not imp.is_nested()
|
||||
|
||||
Reference in New Issue
Block a user