From 887d23652d40cbf1332d685caae083f80d8a5b0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Sat, 18 Mar 2023 15:14:14 +0100 Subject: [PATCH] Test for dist-info instead of egg-info --- tests/functional/test_install_user.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/functional/test_install_user.py b/tests/functional/test_install_user.py index 3207f0a45bf..bebc7e4200a 100644 --- a/tests/functional/test_install_user.py +++ b/tests/functional/test_install_user.py @@ -133,8 +133,7 @@ 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 @@ -142,7 +141,7 @@ def test_install_user_conflict_in_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(