Skip to content

Commit

Permalink
Don't use legacy version numbers in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Sep 30, 2023
1 parent 5817ef2 commit 96aaf34
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/data/packages/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ broken-0.1.tar.gz
-----------------
This package exists for testing uninstall-rollback.

broken-0.2broken.tar.gz
-----------------------
Version 0.2broken has a setup.py crafted to fail on install (and only on
broken-0.2+broken.tar.gz
------------------------
Version 0.2+broken has a setup.py crafted to fail on install (and only on
install). If any earlier step would fail (i.e. egg-info-generation), the
already-installed version would never be uninstalled, so uninstall-rollback
would not come into play.
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/functional/test_install_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def test_uninstall_rollback(script: PipTestEnvironment, data: TestData) -> None:
"-f",
data.find_links,
"--no-index",
"broken===0.2broken",
"broken===0.2+broken",
expect_error=True,
)
assert result2.returncode == 1, str(result2)
Expand Down

0 comments on commit 96aaf34

Please sign in to comment.