classification
Title: test_httpservers hangs on an IPv6-only host
Type: behavior Stage: needs patch
Components: Tests Versions: Python 3.9, Python 3.8, Python 3.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: gregory.p.smith Nosy List: gregory.p.smith
Priority: normal Keywords:

Created on 2019-08-20 18:33 by gregory.p.smith, last changed 2019-08-20 18:33 by gregory.p.smith.

Messages (1)
msg350034 - (view) Author: Gregory P. Smith (gregory.p.smith) * (Python committer) Date: 2019-08-20 18:33
test_err (test.test_httpservers.RequestHandlerLoggingTestCase) ... Exception in thread Thread-1:
Traceback (most recent call last):
  File "/home/greg/oss/cpython/Lib/threading.py", line 938, in _bootstrap_inner
    self.run()
  File "/home/greg/oss/cpython/Lib/test/test_httpservers.py", line 50, in run
    self.server = HTTPServer(('localhost', 0), self.request_handler)
  File "/home/greg/oss/cpython/Lib/socketserver.py", line 452, in __init__
    self.server_bind()
  File "/home/greg/oss/cpython/Lib/http/server.py", line 137, in server_bind
    socketserver.TCPServer.server_bind(self)
  File "/home/greg/oss/cpython/Lib/socketserver.py", line 466, in server_bind
    self.socket.bind(self.server_address)
OSError: [Errno 99] Cannot assign requested address

I'm preparing an IPv6-only buildbot.  There is no IPv4 localhost.
History
Date User Action Args
2019-08-20 18:33:34gregory.p.smithcreate