summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2015-01-17 16:57:19 -0800
committerNed Deily <nad@acm.org>2015-01-17 16:57:19 -0800
commit68976be8d4360795e3e503a57ef6e0a793f058d6 (patch)
treedffc44586515b7a8b74dbdc25430903e4671916b
parent356f62a6bfa59e06a971cfc2ea47b42771d4bed1 (diff)
downloadcpython-68976be8d4360795e3e503a57ef6e0a793f058d6.tar.gz
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.
-rw-r--r--Lib/test/test_logging.py4
-rw-r--r--Misc/NEWS2
2 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 5729678ff5..4ef8c2847c 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -930,10 +930,10 @@ class SMTPHandlerTest(BaseTest):
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 --git a/Misc/NEWS b/Misc/NEWS
index e4912f640d..403bf87817 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -290,6 +290,8 @@ Tests
- 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
-----