From 5ad0e3d72e69a03e1ef659c433d57b286a4e45de Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Wed, 19 Jun 2019 01:37:16 +0200 Subject: [PATCH] Ignore some tests for Python 3.4, because it's end of life soon and the typing library doesn't exist for it --- test/test_evaluate/test_gradual/test_stubs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_evaluate/test_gradual/test_stubs.py b/test/test_evaluate/test_gradual/test_stubs.py index 04656702..0782469c 100644 --- a/test/test_evaluate/test_gradual/test_stubs.py +++ b/test/test_evaluate/test_gradual/test_stubs.py @@ -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):