changeset: 94195:90b664532d1c branch: 3.4 parent: 94190:2bbd7b739b85 user: Ned Deily date: Sat Jan 17 16:57:19 2015 -0800 files: Lib/test/test_logging.py Misc/NEWS description: 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 2bbd7b739b85 -r 90b664532d1c Lib/test/test_logging.py --- a/Lib/test/test_logging.py Sat Jan 17 08:50:42 2015 -0600 +++ b/Lib/test/test_logging.py Sat Jan 17 16:57:19 2015 -0800 @@ -930,10 +930,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']) diff -r 2bbd7b739b85 -r 90b664532d1c Misc/NEWS --- a/Misc/NEWS Sat Jan 17 08:50:42 2015 -0600 +++ b/Misc/NEWS Sat Jan 17 16:57:19 2015 -0800 @@ -290,6 +290,8 @@ - Issue #22770: Prevent some Tk segfaults on OS X when running gui tests. +- Issue #23211: Workaround test_logging failure on some OS X 10.6 systems. + Build -----