mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-24 05:07:05 +08:00
Refactor the compiled name stub wrappers a bit
This commit is contained in:
1 parent
74db580671
commit
5d24bc7625
2 files changed
+18
-10
No files matched your search
@@ -120,7 +120,8 @@ def test_sys_getwindowsversion(Script, environment):
|
||||
def test_sys_hexversion(Script):
|
||||
script = Script('import sys; sys.hexversion')
|
||||
def_, = script.completions()
|
||||
assert isinstance(def_._name, TreeNameDefinition)
|
||||
assert isinstance(def_._name, typeshed.CompiledNameWithStub), def_._name
|
||||
assert isinstance(def_._name._stub_name, TreeNameDefinition)
|
||||
assert typeshed._TYPESHED_PATH in def_.module_path
|
||||
def_, = script.goto_definitions()
|
||||
assert def_.name == 'int'
|
||||
|
||||
Reference in new issue
Block a user