Skip to content

Commit aaa5d94

Browse files
committed
Fix test for behaviour change
1 parent 59ff7ed commit aaa5d94

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/functional/test_install_upgrade.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,8 @@ def test_uninstall_before_upgrade_from_url(script):
217217
@pytest.mark.network
218218
def test_upgrade_to_same_version_from_url(script):
219219
"""
220-
When installing from a URL the same version that is already installed, no
221-
need to uninstall and reinstall if --upgrade is not specified.
222-
220+
A direct URL always triggers reinstallation if the current installation
221+
was not made from a URL, even if they specify the same version.
223222
"""
224223
result = script.pip("install", "INITools==0.3")
225224
result.did_create(script.site_packages / "initools")
@@ -228,8 +227,9 @@ def test_upgrade_to_same_version_from_url(script):
228227
"https://files.pythonhosted.org/packages/source/I/INITools/INITools-"
229228
"0.3.tar.gz",
230229
)
230+
print(result2.stdout)
231231
assert (
232-
script.site_packages / "initools" not in result2.files_updated
232+
script.site_packages / "initools" in result2.files_updated
233233
), "INITools 0.3 reinstalled same version"
234234
result3 = script.pip("uninstall", "initools", "-y")
235235
assert_all_changes(result, result3, [script.venv / "build", "cache"])

0 commit comments

Comments
 (0)