diff options
| author | Bernát Gábor <gaborjbernat@gmail.com> | 2022-12-04 20:14:21 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-04 20:14:21 -0800 |
| commit | 8d69dfb05cf8d8a3dba67a6b6f5a70ff7fa6ee4c (patch) | |
| tree | 5635ade5de78403617e3529b670bf9315817e4d4 /tests/tox_env/python/virtual_env | |
| parent | 20ab8a00d19a4bae2d05112e3306880119f78477 (diff) | |
| download | tox-git-8d69dfb05cf8d8a3dba67a6b6f5a70ff7fa6ee4c.tar.gz | |
Do not pull in Python 2 as dependency (#2589)
Diffstat (limited to 'tests/tox_env/python/virtual_env')
| -rw-r--r-- | tests/tox_env/python/virtual_env/test_virtualenv_api.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/tox_env/python/virtual_env/test_virtualenv_api.py b/tests/tox_env/python/virtual_env/test_virtualenv_api.py index bc6e2de2..2d84dafd 100644 --- a/tests/tox_env/python/virtual_env/test_virtualenv_api.py +++ b/tests/tox_env/python/virtual_env/test_virtualenv_api.py @@ -2,7 +2,6 @@ from __future__ import annotations import os import sys -from pathlib import Path import pytest from pytest_mock import MockerFixture @@ -169,19 +168,3 @@ def test_list_dependencies_command(tox_project: ToxProjectCreator) -> None: result.assert_success() request: ExecuteRequest = execute_calls.call_args[0][3] assert request.cmd == ["python", "-m", "pip", "freeze"] - - -def test_can_build_and_run_python_2(tox_project: ToxProjectCreator, demo_pkg_inline: Path) -> None: - try: - session_via_cli(["-p", "2.7", "venv"]) - except RuntimeError: # pragma: no cover - pytest.skip("no python 2.7 interpreter") # pragma: no cover - proj = tox_project({"tox.ini": "[testenv]\npackage=wheel"}) - execute_calls = proj.patch_execute(lambda r: 0 if "install" in r.run_id else None) - result = proj.run("r", "-e", "py27", "--root", str(demo_pkg_inline)) - result.assert_success() - - install_cmd = next( - i[0][3].cmd for i in execute_calls.call_args_list if "install" in i[0][3].run_id - ) # pragma: no cover - assert install_cmd[:-1] == ["python", "-E", "-m", "pip", "install", "--force-reinstall", "--no-deps"] |
