mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Fix some version issue stuff
This commit is contained in:
@@ -118,7 +118,8 @@ def test_create_environment_executable():
|
|||||||
assert environment.executable == sys.executable
|
assert environment.executable == sys.executable
|
||||||
|
|
||||||
|
|
||||||
def test_get_default_environment_from_env_does_not_use_safe(tmpdir, monkeypatch, skip_python2):
|
@pytest.mark.skipif(sys.version_info[0] == 2, reason="Ignore Python 2, because EOL")
|
||||||
|
def test_get_default_environment_from_env_does_not_use_safe(tmpdir, monkeypatch):
|
||||||
fake_python = os.path.join(str(tmpdir), 'fake_python')
|
fake_python = os.path.join(str(tmpdir), 'fake_python')
|
||||||
with open(fake_python, 'w', newline='') as f:
|
with open(fake_python, 'w', newline='') as f:
|
||||||
f.write('')
|
f.write('')
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ class Bar:
|
|||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def pyc_project_path(tmpdir, skip_python2):
|
def pyc_project_path(tmpdir):
|
||||||
path = tmpdir.strpath
|
path = tmpdir.strpath
|
||||||
dummy_package_path = os.path.join(path, "dummy_package")
|
dummy_package_path = os.path.join(path, "dummy_package")
|
||||||
os.mkdir(dummy_package_path)
|
os.mkdir(dummy_package_path)
|
||||||
@@ -56,6 +56,7 @@ def pyc_project_path(tmpdir, skip_python2):
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize('load_unsafe_extensions', [False, True])
|
@pytest.mark.parametrize('load_unsafe_extensions', [False, True])
|
||||||
|
@pytest.mark.skipif(sys.version_info[0] == 2, reason="Ignore Python 2, because EOL")
|
||||||
def test_pyc(pyc_project_path, environment, load_unsafe_extensions):
|
def test_pyc(pyc_project_path, environment, load_unsafe_extensions):
|
||||||
"""
|
"""
|
||||||
The list of completion must be greater than 2.
|
The list of completion must be greater than 2.
|
||||||
|
|||||||
Reference in New Issue
Block a user