# HG changeset patch # Parent c52f76c84eec6da1941ee5a3e609c7510656140c Issue #23211: Workaround test_logging failure on some OS X 10.6 systems: getaddrinfo("localhost") can fail depending on the name server configuration, use "127.0.0.0" instead. diff -r c52f76c84eec Lib/test/test_logging.py --- a/Lib/test/test_logging.py Thu Jan 15 09:17:18 2015 -0800 +++ b/Lib/test/test_logging.py Thu Jan 15 13:00:23 2015 -0800 @@ -926,10 +926,10 @@ TIMEOUT = 8.0 def test_basic(self): sockmap = {} - server = TestSMTPServer(('localhost', 0), self.process_message, 0.001, + server = TestSMTPServer((support.HOST, 0), self.process_message, 0.001, sockmap) server.start() - addr = ('localhost', server.port) + addr = (support.HOST, server.port) h = logging.handlers.SMTPHandler(addr, 'me', 'you', 'Log', timeout=self.TIMEOUT) self.assertEqual(h.toaddrs, ['you'])