Skip to content

Commit

Permalink
Fix test following stricter version parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Sep 29, 2023
1 parent 17e9fa7 commit d9546f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/functional/test_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -2253,14 +2253,14 @@ def test_yanked_version_missing_from_availble_versions_error_message(
"""
result = script.pip(
"install",
"simple==",
"simple==0.1",
"--index-url",
data.index_url("yanked"),
expect_error=True,
)
# the yanked version (3.0) is filtered out from the output:
expected_warning = (
"Could not find a version that satisfies the requirement simple== "
"Could not find a version that satisfies the requirement simple==0.1 "
"(from versions: 1.0, 2.0)"
)
assert expected_warning in result.stderr, str(result)
Expand Down

0 comments on commit d9546f5

Please sign in to comment.