Skip to content

Commit

Permalink
Fix CI for pip v23.3+
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysle committed Sep 30, 2023
1 parent b3fd30e commit 50acbc3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_cli_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2925,7 +2925,11 @@ def test_pass_pip_cache_to_pip_args(tmpdir, runner, current_resolver):
cli, ["--cache-dir", str(cache_dir), "--resolver", current_resolver]
)
assert out.exit_code == 0
assert os.listdir(os.path.join(str(cache_dir), "http"))
# TODO: Remove hack once testing only on v23.3+
try:
assert os.listdir(os.path.join(str(cache_dir), "http"))
except FileNotFoundError:
assert os.listdir(os.path.join(str(cache_dir), "http-v2"))


@backtracking_resolver_only
Expand Down

0 comments on commit 50acbc3

Please sign in to comment.