Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use 127.0.0.1 for HTTPS test
  • Loading branch information
picnixz committed May 19, 2025
commit 4ad442ad89a056cec383f2ec840a5dc847752b37
3 changes: 2 additions & 1 deletion Lib/test/test_httpservers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1513,8 +1513,9 @@ def test_https_client(self):
context.check_hostname = False
context.verify_mode = ssl.CERT_NONE

port = find_unused_port()
bind, port = '127.0.0.1', find_unused_port()
proc = spawn_python('-u', '-m', 'http.server', str(port),
'-b', bind,
'--tls-cert', self.tls_cert,
'--tls-key', self.tls_key,
'--tls-password-file', self.tls_password_file,
Expand Down