Skip to content

Commit

Permalink
tests: set system_site_packages=True in the env fixture
Browse files Browse the repository at this point in the history
Signed-off-by: Filipe Laíns <[email protected]>
  • Loading branch information
FFY00 committed Jun 3, 2024
1 parent e00046a commit ebc5d78
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import os
import pathlib
import sys

Expand Down Expand Up @@ -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

0 comments on commit ebc5d78

Please sign in to comment.