Skip to content

Commit 23cc3d5

Browse files
sbidoulpradyunsg
authored andcommitted
Always install wheel in test venvs
1 parent 1a0b7f4 commit 23cc3d5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/conftest.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,7 @@ def virtualenv_template(
429429
tmpdir_factory: pytest.TempPathFactory,
430430
pip_src: Path,
431431
setuptools_install: Path,
432+
wheel_install: Path,
432433
coverage_install: Path,
433434
) -> Iterator[VirtualEnvironment]:
434435

@@ -442,8 +443,9 @@ def virtualenv_template(
442443
tmpdir = tmpdir_factory.mktemp("virtualenv")
443444
venv = VirtualEnvironment(tmpdir.joinpath("venv_orig"), venv_type=venv_type)
444445

445-
# Install setuptools and pip.
446+
# Install setuptools, wheel and pip.
446447
install_pth_link(venv, "setuptools", setuptools_install)
448+
install_pth_link(venv, "wheel", wheel_install)
447449
pip_editable = tmpdir_factory.mktemp("pip") / "pip"
448450
shutil.copytree(pip_src, pip_editable, symlinks=True)
449451
# noxfile.py is Python 3 only
@@ -503,7 +505,7 @@ def virtualenv(
503505

504506
@pytest.fixture
505507
def with_wheel(virtualenv: VirtualEnvironment, wheel_install: Path) -> None:
506-
install_pth_link(virtualenv, "wheel", wheel_install)
508+
pass
507509

508510

509511
class ScriptFactory(Protocol):

0 commit comments

Comments
 (0)