Skip to content

Commit b11e8e4

Browse files
sbidoulpradyunsg
authored andcommitted
Test presence of dist-info instead of egg-info
1 parent 23cc3d5 commit b11e8e4

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

tests/functional/test_install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ def test_install_package_with_prefix(
11741174
install_path = join(
11751175
sysconfig.get_path("purelib", vars={"base": rel_prefix_path}),
11761176
# we still test for egg-info because no-binary implies setup.py install
1177-
f"simple-1.0-py{pyversion}.egg-info",
1177+
"simple-1.0.dist-info",
11781178
)
11791179
result.did_create(install_path)
11801180

tests/functional/test_install_user.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,16 +133,15 @@ def test_install_user_conflict_in_usersite(
133133
result2 = script.pip("install", "--user", "INITools==0.1", "--no-binary=:all:")
134134

135135
# usersite has 0.1
136-
# we still test for egg-info because no-binary implies setup.py install
137-
egg_info_folder = script.user_site / f"INITools-0.1-py{pyversion}.egg-info"
136+
dist_info_folder = script.user_site / "INITools-0.1.dist-info"
138137
initools_v3_file = (
139138
# file only in 0.3
140139
script.base_path
141140
/ script.user_site
142141
/ "initools"
143142
/ "configparser.py"
144143
)
145-
result2.did_create(egg_info_folder)
144+
result2.did_create(dist_info_folder)
146145
assert not isfile(initools_v3_file), initools_v3_file
147146

148147
def test_install_user_conflict_in_globalsite(

0 commit comments

Comments
 (0)