Change some tests in Python2

This commit is contained in:
Dave Halter
2018-12-08 23:55:08 +01:00
parent decb5046ea
commit 0c37256050
2 changed files with 11 additions and 4 deletions

View File

@@ -1,5 +1,7 @@
from textwrap import dedent
import pytest
from jedi.evaluate import compiled
from jedi.evaluate.helpers import execute_evaluated
@@ -85,5 +87,8 @@ def test_time_docstring(Script):
assert comp.docstring() == expected
def test_dict_values(Script):
def test_dict_values(Script, environment):
if environment.version_info.major == 2:
# It looks like typeshed for Python 2 returns Any.
pytest.skip()
assert Script('import sys\nsys.modules["alshdb;lasdhf"]').goto_definitions()