mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-08 11:25:14 +08:00
Remove a statement that didn't make sense
This commit is contained in:
1 parent
a0536bd854
commit
10c5990614
2 files changed
+9
-1
No files matched your search
@@ -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