Skip to content

Commit 4ad442a

Browse files
committed
use 127.0.0.1 for HTTPS test
1 parent a46c9c2 commit 4ad442a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_httpservers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1513,8 +1513,9 @@ def test_https_client(self):
15131513
context.check_hostname = False
15141514
context.verify_mode = ssl.CERT_NONE
15151515

1516-
port = find_unused_port()
1516+
bind, port = '127.0.0.1', find_unused_port()
15171517
proc = spawn_python('-u', '-m', 'http.server', str(port),
1518+
'-b', bind,
15181519
'--tls-cert', self.tls_cert,
15191520
'--tls-key', self.tls_key,
15201521
'--tls-password-file', self.tls_password_file,

0 commit comments

Comments
 (0)