Remove most version_info.major usages

This commit is contained in:
Dave Halter committed 2020-07-02 03:00:01 +02:00
1 parent 188fdcd34f
commit 6e184bca97
16 files changed
+26 -95

No files matched your search

+1 -3
View File
@@ -102,9 +102,7 @@ def collect_static_analysis_tests(base_dir, test_files):
@pytest.fixture(scope='session')
def venv_path(tmpdir_factory, environment):
if environment.version_info.major < 3:
pytest.skip("python -m venv does not exist in Python 2")
elif isinstance(environment, InterpreterEnvironment):
if isinstance(environment, InterpreterEnvironment):
# The environment can be a tox virtualenv environment which we don't
# want, so use the system environment.
environment = get_system_environment(