Skip to content

Commit

Permalink
Fix failing test on pip-24.0
Browse files Browse the repository at this point in the history
  • Loading branch information
atugushev committed Feb 16, 2024
1 parent a8688d7 commit 598845a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_cli_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,9 @@ def test_emit_index_url_option(runner, option, expected_output):


@pytest.mark.network
def test_realistic_complex_sub_dependencies(runner):
wheels_dir = "wheels"
def test_realistic_complex_sub_dependencies(runner, tmp_path):
wheels_dir = tmp_path / "wheels"
wheels_dir.mkdir()

# make a temporary wheel of a fake package
subprocess.run(
Expand All @@ -439,7 +440,7 @@ def test_realistic_complex_sub_dependencies(runner):
with open("requirements.in", "w") as req_in:
req_in.write("fake_with_deps") # require fake package

out = runner.invoke(cli, ["-n", "--rebuild", "-f", wheels_dir])
out = runner.invoke(cli, ["-n", "--rebuild", "-f", wheels_dir.as_posix()])

assert out.exit_code == 0

Expand Down

0 comments on commit 598845a

Please sign in to comment.