aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_logging.py
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
commit1e012e6c7f3346bf7977d1476d98a4087a84bd4b (patch)
treeaaebb5655bb7369e908dfe0f46d689681f7dd420 /Lib/test/test_logging.py
parent465b057f919ee4f8384fe338331225621ed71028 (diff)
downloadcpython-1e012e6c7f3346bf7977d1476d98a4087a84bd4b.tar.gz
cpython-1e012e6c7f3346bf7977d1476d98a4087a84bd4b.zip
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.
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r--Lib/test/test_logging.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 5729678ff54..4ef8c2847c4 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'])