summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorStéphane Bidoul <stephane.bidoul@gmail.com>2023-03-18 14:25:37 +0100
committerPradyun Gedam <pradyunsg@gmail.com>2023-03-27 11:55:20 +0100
commitb11e8e434368ce30e625052f482f8ab0b7d9ec44 (patch)
tree57f97fa14d6498640a3e6f291f9b238772b9420e /tests
parent23cc3d523b5998b9be9c34305f6fa3503c96f49a (diff)
downloadpip-b11e8e434368ce30e625052f482f8ab0b7d9ec44.tar.gz
Test presence of dist-info instead of egg-info
Diffstat (limited to 'tests')
-rw-r--r--tests/functional/test_install.py2
-rw-r--r--tests/functional/test_install_user.py5
2 files changed, 3 insertions, 4 deletions
diff --git a/tests/functional/test_install.py b/tests/functional/test_install.py
index 3932fcfb0..ac1292ad7 100644
--- a/tests/functional/test_install.py
+++ b/tests/functional/test_install.py
@@ -1174,7 +1174,7 @@ def test_install_package_with_prefix(
install_path = join(
sysconfig.get_path("purelib", vars={"base": rel_prefix_path}),
# we still test for egg-info because no-binary implies setup.py install
- f"simple-1.0-py{pyversion}.egg-info",
+ "simple-1.0.dist-info",
)
result.did_create(install_path)
diff --git a/tests/functional/test_install_user.py b/tests/functional/test_install_user.py
index 3207f0a45..bebc7e420 100644
--- a/tests/functional/test_install_user.py
+++ b/tests/functional/test_install_user.py
@@ -133,8 +133,7 @@ class Tests_UserSite:
result2 = script.pip("install", "--user", "INITools==0.1", "--no-binary=:all:")
# usersite has 0.1
- # we still test for egg-info because no-binary implies setup.py install
- egg_info_folder = script.user_site / f"INITools-0.1-py{pyversion}.egg-info"
+ dist_info_folder = script.user_site / "INITools-0.1.dist-info"
initools_v3_file = (
# file only in 0.3
script.base_path
@@ -142,7 +141,7 @@ class Tests_UserSite:
/ "initools"
/ "configparser.py"
)
- result2.did_create(egg_info_folder)
+ result2.did_create(dist_info_folder)
assert not isfile(initools_v3_file), initools_v3_file
def test_install_user_conflict_in_globalsite(