Merge pull request #8496 from uranusjr/yaml-tests-fix

Fix YAML tests to reflect the new resolver error
This commit is contained in:
Pradyun Gedam 2020-06-25 11:01:24 +00:00 committed by GitHub
commit 0b5ad47cbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 21 deletions

View File

@ -36,7 +36,9 @@ cases:
- state: null
error:
code: 1
stderr: 'no\s+matching\s+distribution'
stderr: >-
Cannot install B==1.0.0 and B==2.0.0 because these
package versions have conflicting dependencies.
skip: old
# -- currently the (new resolver) error message is:
# Could not find a version that satisfies the requirement B==1.0.0

View File

@ -22,9 +22,7 @@ cases:
response:
- state: null
error:
stderr: 'no matching distribution found for six'
stderr: >-
Cannot install six<1.12 and virtualenv 20.0.2 because these
package versions have conflicting dependencies.
skip: old
# -- currently the error message is:
# Could not find a version that satisfies the requirement six<1.12
# Could not find a version that satisfies the requirement six<2,>=1.12.0 (from virtualenv)
# No matching distribution found for six, six

View File

@ -11,13 +11,9 @@ cases:
response:
- error:
code: 1
stderr: 'no matching distribution found'
stderr: >-
Cannot install A and A because these package
versions have conflicting dependencies.
# TODO: Tweak this error message to make sense.
# https://github.com/pypa/pip/issues/8495
skip: old
# -- currently the error message is:
# Could not find a version that satisfies the requirement D==2.0.0 (from c)
# Could not find a version that satisfies the requirement D==1.0.0 (from b)
# No matching distribution found for d, d
# -- This is a bit confusing, as both versions of D are available.
# -- better would be something like:
# A 1.0.0 -> B 1.0.0 -> D 1.0.0
# A 1.0.0 -> C 1.0.0 -> D 2.0.0

View File

@ -287,10 +287,9 @@ cases:
- state: null
error:
code: 1
stderr: 'version that satisfies the requirement'
stderr: >-
Cannot install six==1.8.2, html5lib 1.0.1, six==1.8.2 and
html5lib 0.999999999 because these package versions have
conflicting dependencies.
skip: old
# -- the new resolver tells:
# Could not find a version that satisfies the requirement six==1.8.2
# Could not find a version that satisfies the requirement six>=1.9 (from html5lib)
# -- the old error message (which I think was better):
# html5lib 1.0.1 has requirement six>=1.9, but you'll have six 1.8.2 which is incompatible.