Remove a lot of test references to Python 2/3.5

This commit is contained in:
Dave Halter
2020-07-02 00:17:21 +02:00
parent 0e5869b52f
commit 50b85153ce
32 changed files with 24 additions and 87 deletions

View File

@@ -104,10 +104,11 @@ def test_signature():
assert s.docstring() == 'some_signature(*, bar=1)'
@pytest.mark.skipif(sys.version_info[0:2] < (3, 5), reason="Typing was introduced in Python 3.5")
def test_compiled_signature_annotation_string():
import typing
def func(x: typing.Type, y: typing.Union[typing.Type, int]): pass
def func(x: typing.Type, y: typing.Union[typing.Type, int]):
pass
func.__name__ = 'not_func'
s, = jedi.Interpreter('func()', [locals()]).get_signatures(1, 5)