Skip to content

Commit

Permalink
Merge pull request #2055 from atugushev/fix-failing-test-on-pip-24
Browse files Browse the repository at this point in the history
Fix failing test on pip-24.0
  • Loading branch information
webknjaz authored Feb 16, 2024
2 parents a8688d7 + 598845a commit c8f2988
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 c8f2988

Please sign in to comment.