Fix some version issue stuff

This commit is contained in:
Dave Halter
2020-03-01 01:42:22 +01:00
parent fd23946de3
commit e5fabb4c5f
2 changed files with 4 additions and 2 deletions

View File

@@ -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('')

View File

@@ -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.