Skip to content

Commit c8f2988

Browse files
authored
Merge pull request #2055 from atugushev/fix-failing-test-on-pip-24
Fix failing test on pip-24.0
2 parents a8688d7 + 598845a commit c8f2988

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/test_cli_compile.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,9 @@ def test_emit_index_url_option(runner, option, expected_output):
420420

421421

422422
@pytest.mark.network
423-
def test_realistic_complex_sub_dependencies(runner):
424-
wheels_dir = "wheels"
423+
def test_realistic_complex_sub_dependencies(runner, tmp_path):
424+
wheels_dir = tmp_path / "wheels"
425+
wheels_dir.mkdir()
425426

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

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

444445
assert out.exit_code == 0
445446

0 commit comments

Comments
 (0)