Get some sys completions working
This commit is contained in:
1 parent
facbf61133
commit
aa8e2c7173
2 files changed
+7
-3
No files matched your search
@@ -81,6 +81,12 @@ def test_method(Script):
|
||||
assert context.class_context.py__name__() == 'str'
|
||||
|
||||
|
||||
def test_sys(Script):
|
||||
code = 'import sys; sys.exc_info()[1]'
|
||||
def_, = Script(code).goto_definitions()
|
||||
assert def_.name == 'BaseException'
|
||||
|
||||
|
||||
def test_math(Script):
|
||||
def_, = Script('import math; math.acos()').goto_definitions()
|
||||
assert def_.name == 'float'
|
||||
|
||||
Reference in new issue
Block a user