mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-15 08:26:42 +08:00
8 lines
207 B
Python
8 lines
207 B
Python
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()
|