Skip to content

Commit cbf2d30

Browse files
committed
Minor stylistic refactoring in proxy test
1 parent eacfb6b commit cbf2d30

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/functional/test_proxy.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,13 @@ def test_build_deps_use_proxy_from_cli(
9696
script: PipTestEnvironment, capfd: pytest.CaptureFixture[str], data: TestData
9797
) -> None:
9898
with proxy.Proxy(port=0, num_acceptors=1, plugins=[AccessLogPlugin]) as proxy1:
99-
args = ["wheel", "-v", str(data.packages / "pep517_setup_and_pyproject")]
100-
args.extend(["--proxy", f"http://127.0.0.1:{proxy1.flags.port}"])
101-
result = script.pip(*args)
99+
result = script.pip(
100+
"wheel",
101+
"-v",
102+
str(data.packages / "pep517_setup_and_pyproject"),
103+
"--proxy",
104+
f"http://127.0.0.1:{proxy1.flags.port}",
105+
)
102106

103107
wheel_path = script.scratch / "pep517_setup_and_pyproject-1.0-py3-none-any.whl"
104108
result.did_create(wheel_path)

0 commit comments

Comments
 (0)