mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 14:34:31 +08:00
Small test fix.
This commit is contained in:
@@ -314,8 +314,10 @@ class TestGotoAssignments(TestCase):
|
|||||||
assert n.name == 'os'
|
assert n.name == 'os'
|
||||||
assert n.type == 'module'
|
assert n.type == 'module'
|
||||||
n = nms[1].goto_assignments()[0]
|
n = nms[1].goto_assignments()[0]
|
||||||
assert n.name == 'path'
|
# This is very special, normally the name doesn't chance, but since
|
||||||
assert n.type == 'import'
|
# os.path is a sys.modules hack, it does.
|
||||||
|
assert n.name in ('ntpath', 'posixpath')
|
||||||
|
assert n.type == 'module'
|
||||||
|
|
||||||
def test_import_alias(self):
|
def test_import_alias(self):
|
||||||
nms = names('import json as foo', references=True)
|
nms = names('import json as foo', references=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user