We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9192281 commit bd42827Copy full SHA for bd42827
Lib/test/test_httpservers.py
@@ -1514,7 +1514,8 @@ def wait_for_server(self, proc, protocol, port, bind, timeout=50):
1514
return False
1515
1516
def test_http_client(self):
1517
- _, (bind, port) = server._get_best_family(None, find_unused_port())
+ _, addr = server._get_best_family(None, find_unused_port())
1518
+ bind, port = addr[:2]
1519
proc = spawn_python('-u', '-m', 'http.server', str(port), '-b', bind,
1520
bufsize=1, text=True)
1521
self.addCleanup(kill_python, proc)
@@ -1524,7 +1525,8 @@ def test_http_client(self):
1524
1525
self.assertEqual(res, self.served_data)
1526
1527
def test_https_client(self):
1528
1529
1530
1531
'--tls-cert', self.tls_cert,
1532
'--tls-key', self.tls_key,
0 commit comments