Fix an issue with the latest typeshed upgrade in tests
This commit is contained in:
1 parent
9e29e35e16
commit
55feb95d41
1 file changed
+4
-3
@@ -112,12 +112,13 @@ def test_sys_exc_info(Script):
|
||||
|
||||
|
||||
def test_sys_getwindowsversion(Script, environment):
|
||||
# This should only exist on Windows, but cmpletion should happen
|
||||
# This should only exist on Windows, but type inference should happen
|
||||
# everywhere.
|
||||
def_, = Script('import sys; sys.getwindowsversion().major').goto_definitions()
|
||||
definitions = Script('import sys; sys.getwindowsversion().major').goto_definitions()
|
||||
if environment.version_info.major == 2:
|
||||
assert def_.name == 'ellipsis'
|
||||
assert not definitions
|
||||
else:
|
||||
def_, = definitions
|
||||
assert def_.name == 'int'
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user