forked from VimPlug/jedi
test for is_nested failure
This commit is contained in:
7
test/test_parser/test_representation.py
Normal file
7
test/test_parser/test_representation.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from jedi.parser import Parser
|
||||
|
||||
|
||||
def test_import_is_nested():
|
||||
imp = Parser('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