Skip to content

Commit 5b61ce1

Browse files
committed
Fix test_install_pep508_with_url_*
These tests should not have access to site packages so they always install the package into an empty environment.
1 parent c7526b8 commit 5b61ce1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/functional/test_install.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1568,7 +1568,9 @@ def test_install_compatible_python_requires(script):
15681568

15691569

15701570
@pytest.mark.network
1571-
def test_install_pep508_with_url(script):
1571+
def test_install_pep508_with_url(script, virtualenv):
1572+
virtualenv.user_site_packages = False
1573+
15721574
res = script.pip(
15731575
'install', '--no-index',
15741576
'packaging@https://files.pythonhosted.org/packages/2f/2b/'
@@ -1580,7 +1582,9 @@ def test_install_pep508_with_url(script):
15801582

15811583

15821584
@pytest.mark.network
1583-
def test_install_pep508_with_url_in_install_requires(script):
1585+
def test_install_pep508_with_url_in_install_requires(script, virtualenv):
1586+
virtualenv.user_site_packages = False
1587+
15841588
pkga_path = create_test_package_with_setup(
15851589
script, name='pkga', version='1.0',
15861590
install_requires=[

0 commit comments

Comments
 (0)