1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Add failing test for bug found

This commit is contained in:
Tzu-ping Chung 2020-06-05 00:09:14 +08:00
parent d3ce025e8d
commit 53ce9b66ac

View file

@ -901,3 +901,25 @@ def test_new_resolver_build_directory_error_zazo_19(script):
"pkg-a", "pkg-b",
)
assert_installed(script, pkg_a="3.0.0", pkg_b="1.0.0")
def test_new_resolver_upgrade_same_version(script):
create_basic_wheel_for_package(script, "pkg", "2")
create_basic_wheel_for_package(script, "pkg", "1")
script.pip(
"install", "--unstable-feature=resolver",
"--no-cache-dir", "--no-index",
"--find-links", script.scratch_path,
"pkg",
)
assert_installed(script, pkg="2")
script.pip(
"install", "--unstable-feature=resolver",
"--no-cache-dir", "--no-index",
"--find-links", script.scratch_path,
"--upgrade",
"pkg",
)
assert_installed(script, pkg="2")