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:
parent
f8fa3f8c4f
commit
17103e8d1a
1 changed files with 38 additions and 0 deletions
38
tests/yaml/pip988.yml
Normal file
38
tests/yaml/pip988.yml
Normal 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
|
Loading…
Reference in a new issue