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

add new test example mentioned in issue #988

This commit is contained in:
Ilan Schnell 2020-04-25 00:07:57 -05:00
parent f8fa3f8c4f
commit 17103e8d1a

38
tests/yaml/pip988.yml Normal file
View file

@ -0,0 +1,38 @@
# https://github.com/pypa/pip/issues/988
# see comment from benoit-pierre
base:
available:
- A 1.0.0; depends B >= 1.0.0, C >= 1.0.0
- A 2.0.0; depends B >= 2.0.0, C >= 1.0.0
- B 1.0.0; depends C >= 1.0.0
- B 2.0.0; depends C >= 2.0.0
- C 1.0.0
- C 2.0.0
cases:
-
request:
- install: C==1.0.0
- install: B==1.0.0
- install: A==1.0.0
- install: A==2.0.0
response:
- state:
- C 1.0.0
- state:
- B 1.0.0
- C 1.0.0
- state:
- A 1.0.0
- B 1.0.0
- C 1.0.0
- state:
- A 2.0.0
- B 2.0.0
- C 2.0.0
# for the last install (A==2.0.0) the old resolver does gives
# - A 2.0.0
# - B 2.0.0
# - C 1.0.0
# but because B 2.0.0 depends on C >=2.0.0 this is wrong
skip: old