forked from VimPlug/jedi
that test again...
This commit is contained in:
@@ -9,7 +9,7 @@ def test_user_statement_on_import():
|
|||||||
" time)"
|
" time)"
|
||||||
|
|
||||||
for pos in [(2, 1), (2, 4)]:
|
for pos in [(2, 1), (2, 4)]:
|
||||||
u = UserContextParser(s, None, pos).user_stmt()
|
u = UserContextParser(s, None, pos, None).user_stmt()
|
||||||
assert isinstance(u, pr.Import)
|
assert isinstance(u, pr.Import)
|
||||||
assert u.defunct is False
|
assert u.defunct is False
|
||||||
assert [str(n) for n in u.get_defined_names()] == ['time']
|
assert [str(n) for n in u.get_defined_names()] == ['time']
|
||||||
|
|||||||
Reference in New Issue
Block a user