diff --git a/test/test_compatibility.py b/test/test_compatibility.py index 01c9dae5..c3c5c0e5 100644 --- a/test/test_compatibility.py +++ b/test/test_compatibility.py @@ -5,22 +5,14 @@ from jedi._compatibility import highest_pickle_protocol def test_highest_pickle_protocol(): v = namedtuple('version', 'major, minor') assert highest_pickle_protocol([v(2, 7), v(2, 7)]) == 2 - assert highest_pickle_protocol([v(2, 7), v(3, 3)]) == 2 - assert highest_pickle_protocol([v(2, 7), v(3, 4)]) == 2 + assert highest_pickle_protocol([v(2, 7), v(3, 8)]) == 2 assert highest_pickle_protocol([v(2, 7), v(3, 5)]) == 2 assert highest_pickle_protocol([v(2, 7), v(3, 6)]) == 2 - assert highest_pickle_protocol([v(3, 3), v(2, 7)]) == 2 - assert highest_pickle_protocol([v(3, 3), v(3, 3)]) == 3 - assert highest_pickle_protocol([v(3, 3), v(3, 4)]) == 3 - assert highest_pickle_protocol([v(3, 3), v(3, 5)]) == 3 - assert highest_pickle_protocol([v(3, 3), v(3, 6)]) == 3 - assert highest_pickle_protocol([v(3, 4), v(2, 7)]) == 2 - assert highest_pickle_protocol([v(3, 4), v(3, 3)]) == 3 - assert highest_pickle_protocol([v(3, 4), v(3, 4)]) == 4 - assert highest_pickle_protocol([v(3, 4), v(3, 5)]) == 4 - assert highest_pickle_protocol([v(3, 4), v(3, 6)]) == 4 + assert highest_pickle_protocol([v(3, 8), v(2, 7)]) == 2 + assert highest_pickle_protocol([v(3, 8), v(3, 8)]) == 4 + assert highest_pickle_protocol([v(3, 8), v(3, 5)]) == 4 + assert highest_pickle_protocol([v(3, 8), v(3, 6)]) == 4 assert highest_pickle_protocol([v(3, 6), v(2, 7)]) == 2 - assert highest_pickle_protocol([v(3, 6), v(3, 3)]) == 3 - assert highest_pickle_protocol([v(3, 6), v(3, 4)]) == 4 + assert highest_pickle_protocol([v(3, 6), v(3, 8)]) == 4 assert highest_pickle_protocol([v(3, 6), v(3, 5)]) == 4 assert highest_pickle_protocol([v(3, 6), v(3, 6)]) == 4 diff --git a/test/test_inference/test_gradual/test_typeshed.py b/test/test_inference/test_gradual/test_typeshed.py index dd0e24dc..5e668a49 100644 --- a/test/test_inference/test_gradual/test_typeshed.py +++ b/test/test_inference/test_gradual/test_typeshed.py @@ -24,9 +24,6 @@ def test_get_typeshed_directories(): dirs = get_dirs(PythonVersionInfo(2, 7)) assert dirs == transform({'stdlib/2and3', 'stdlib/2', 'third_party/2and3', 'third_party/2'}) - dirs = get_dirs(PythonVersionInfo(3, 4)) - assert dirs == transform({'stdlib/2and3', 'stdlib/3', 'third_party/2and3', 'third_party/3'}) - dirs = get_dirs(PythonVersionInfo(3, 5)) assert dirs == transform({'stdlib/2and3', 'stdlib/3', 'third_party/2and3', 'third_party/3'}) diff --git a/test/test_inference/test_implicit_namespace_package.py b/test/test_inference/test_implicit_namespace_package.py index 0b3bee71..3fa2b09a 100644 --- a/test/test_inference/test_implicit_namespace_package.py +++ b/test/test_inference/test_implicit_namespace_package.py @@ -8,7 +8,7 @@ from jedi import Project @pytest.fixture(autouse=True) def skip_not_supported_versions(environment): - if environment.version_info < (3, 4): + if environment.version_info < (3, 5): pytest.skip() diff --git a/test/test_inference/test_namespace_package.py b/test/test_inference/test_namespace_package.py index 0867af85..3cbd8d6e 100644 --- a/test/test_inference/test_namespace_package.py +++ b/test/test_inference/test_namespace_package.py @@ -82,7 +82,7 @@ def test_relative_import(Script, environment, tmpdir): """ Attempt a relative import in a very simple namespace package. """ - if environment.version_info < (3, 4): + if environment.version_info < (3, 5): pytest.skip() directory = get_example_dir('namespace_package_relative_import')