From cbf2d3015a2db6b895b8234ae5c14b2ff9192d1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Sun, 23 Feb 2025 12:20:09 +0100 Subject: [PATCH] Minor stylistic refactoring in proxy test --- tests/functional/test_proxy.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/functional/test_proxy.py b/tests/functional/test_proxy.py index b69166ff3a3..d4946675b24 100644 --- a/tests/functional/test_proxy.py +++ b/tests/functional/test_proxy.py @@ -96,9 +96,13 @@ def test_build_deps_use_proxy_from_cli( script: PipTestEnvironment, capfd: pytest.CaptureFixture[str], data: TestData ) -> None: with proxy.Proxy(port=0, num_acceptors=1, plugins=[AccessLogPlugin]) as proxy1: - args = ["wheel", "-v", str(data.packages / "pep517_setup_and_pyproject")] - args.extend(["--proxy", f"http://127.0.0.1:{proxy1.flags.port}"]) - result = script.pip(*args) + result = script.pip( + "wheel", + "-v", + str(data.packages / "pep517_setup_and_pyproject"), + "--proxy", + f"http://127.0.0.1:{proxy1.flags.port}", + ) wheel_path = script.scratch / "pep517_setup_and_pyproject-1.0-py3-none-any.whl" result.did_create(wheel_path)