classification
Title: test_logging 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:26 by gregory.p.smith, last changed 2019-08-20 18:26 by gregory.p.smith.

Messages (1)
msg350031 - (view) Author: Gregory P. Smith (gregory.p.smith) * (Python committer) Date: 2019-08-20 18:26
test_logging hangs when run on an IPv6-only host.  (127.0.0.1 isn't even available)

test_listen_config_10_ok (test.test_logging.ConfigDictTest) ... Exception in thread Thread-3:
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/logging/config.py", line 918, in run
    server = self.rcvr(port=self.port, handler=self.hdlr,
  File "/home/greg/oss/cpython/Lib/logging/config.py", line 885, in __init__
    ThreadingTCPServer.__init__(self, (host, port), handler)
  File "/home/greg/oss/cpython/Lib/socketserver.py", line 452, in __init__
    self.server_bind()
  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

possibly more, but it's hung here.

I'm preparing an IPv6-only buildbot.
History
Date User Action Args
2019-08-20 18:26:19gregory.p.smithcreate