mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Remove a statement that didn't make sense
This commit is contained in:
@@ -54,3 +54,11 @@ def test_goto_on_file(Script):
|
||||
script = Script(path=d1.module_path, _project=project)
|
||||
d2, = script.goto(line=d1.line, column=d1.column + 4)
|
||||
assert d2.name == 'Bar'
|
||||
|
||||
|
||||
def test_goto_import(Script):
|
||||
code = 'from abc import ABC; ABC'
|
||||
d, = Script(code).goto(only_stubs=True)
|
||||
assert d.is_stub()
|
||||
d, = Script(code).goto()
|
||||
assert not d.is_stub()
|
||||
|
||||
Reference in New Issue
Block a user