From 598845a8662c912e33b883bb4c37e348bfc5cd96 Mon Sep 17 00:00:00 2001 From: Albert Tugushev Date: Fri, 16 Feb 2024 12:49:27 +0100 Subject: [PATCH] Fix failing test on pip-24.0 --- tests/test_cli_compile.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_cli_compile.py b/tests/test_cli_compile.py index f6c5be66..c65d1ed8 100644 --- a/tests/test_cli_compile.py +++ b/tests/test_cli_compile.py @@ -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( @@ -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