diff options
author | Stéphane Bidoul <stephane.bidoul@gmail.com> | 2023-03-18 14:17:39 +0100 |
---|---|---|
committer | Pradyun Gedam <pradyunsg@gmail.com> | 2023-03-27 11:55:20 +0100 |
commit | 23cc3d523b5998b9be9c34305f6fa3503c96f49a (patch) | |
tree | d2eca95f9f70681d4876a01b2dfc15d8c289e148 /tests | |
parent | 1a0b7f47a0eeff5360ecc751e2e6dde6a2222ffe (diff) | |
download | pip-23cc3d523b5998b9be9c34305f6fa3503c96f49a.tar.gz |
Always install wheel in test venvs
Diffstat (limited to 'tests')
-rw-r--r-- | tests/conftest.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index 106e73214..23371f54a 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -429,6 +429,7 @@ def virtualenv_template( tmpdir_factory: pytest.TempPathFactory, pip_src: Path, setuptools_install: Path, + wheel_install: Path, coverage_install: Path, ) -> Iterator[VirtualEnvironment]: @@ -442,8 +443,9 @@ def virtualenv_template( tmpdir = tmpdir_factory.mktemp("virtualenv") venv = VirtualEnvironment(tmpdir.joinpath("venv_orig"), venv_type=venv_type) - # Install setuptools and pip. + # Install setuptools, wheel and pip. install_pth_link(venv, "setuptools", setuptools_install) + install_pth_link(venv, "wheel", wheel_install) pip_editable = tmpdir_factory.mktemp("pip") / "pip" shutil.copytree(pip_src, pip_editable, symlinks=True) # noxfile.py is Python 3 only @@ -503,7 +505,7 @@ def virtualenv( @pytest.fixture def with_wheel(virtualenv: VirtualEnvironment, wheel_install: Path) -> None: - install_pth_link(virtualenv, "wheel", wheel_install) + pass class ScriptFactory(Protocol): |