From ebc5d781414d521c9b37da0be956eb16706fa72c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filipe=20La=C3=ADns?= Date: Mon, 3 Jun 2024 20:29:18 +0100 Subject: [PATCH] tests: set system_site_packages=True in the env fixture MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Filipe LaĆ­ns --- tests/conftest.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 2c78299..7705c13 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,4 +1,3 @@ -import os import pathlib import sys @@ -41,7 +40,6 @@ def self_wheel(tmp_path_factory): @pytest.fixture def env(tmpdir, self_wheel): """Make a virtual environment with our project installed.""" - env = environment_helpers.create_venv(tmpdir) - env.run_interpreter('-m', 'ensurepip') - env.run_interpreter('-m', 'pip', 'install', os.fspath(self_wheel)) + env = environment_helpers.create_venv(tmpdir, system_site_packages=True) + env.install_wheel(self_wheel) return env