Skip to content

Commit b953f9a

Browse files
committed
Use explicit wrong credentials
1 parent 7fef1ad commit b953f9a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/functional/test_install_config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,9 @@ def test_prioritize_url_credentials_over_netrc(
441441
url = f"https://USERNAME:PASSWORD@{server.host}:{server.port}/simple"
442442

443443
netrc = script.scratch_path / ".netrc"
444-
netrc.write_text(f"machine {server.host} login username password password")
444+
netrc.write_text(
445+
f"machine {server.host} login wrongusername password wrongpassword"
446+
)
445447
with server_running(server):
446448
script.environ["NETRC"] = netrc
447449
script.pip(

0 commit comments

Comments
 (0)