Skip to content

Commit

Permalink
Test for dist-info instead of egg-info
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Mar 18, 2023
1 parent 269a0d0 commit 887d236
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/functional/test_install_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,15 @@ def test_install_user_conflict_in_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
/ script.user_site
/ "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(
Expand Down

0 comments on commit 887d236

Please sign in to comment.