Ignore some tests for Python 3.4, because it's end of life soon and the typing library doesn't exist for it

This commit is contained in:
Dave Halter
2019-06-19 01:37:16 +02:00
parent 2cf1797465
commit 5ad0e3d72e

View File

@@ -42,9 +42,9 @@ from test.helpers import root_dir
])
def test_infer_and_goto(Script, code, full_name, has_stub, has_python, way,
kwargs, type_, goto_changes, environment):
if environment.version_info.major == 2:
if environment.version_info < (3, 5):
# We just don't care about much of the detailed Python 2 failures
# anymore, because its end-of-life soon.
# anymore, because its end-of-life soon. (same for 3.4)
pytest.skip()
if type_ == 'infer' and full_name == 'typing.Sequence' and environment.version_info >= (3, 7):