Disable a test in Python2

This commit is contained in:
Dave Halter
2019-09-05 10:03:50 +02:00
parent 599eded3d1
commit 1db3e9a65d

View File

@@ -3,8 +3,10 @@ Test all things related to the ``jedi.api`` module.
""" """
import os import os
import sys
from textwrap import dedent from textwrap import dedent
import pytest
from pytest import raises from pytest import raises
from parso import cache from parso import cache
@@ -12,6 +14,7 @@ from jedi import preload_module
from jedi.inference.gradual import typeshed from jedi.inference.gradual import typeshed
@pytest.mark.skipif(sys.version_info[0] == 2, reason="Ignore Python 2, EoL")
def test_preload_modules(): def test_preload_modules():
def check_loaded(*modules): def check_loaded(*modules):
for grammar_cache in cache.parser_cache.values(): for grammar_cache in cache.parser_cache.values():