diff options
author | Ned Deily <nad@acm.org> | 2015-01-18 01:31:13 (GMT) |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2015-01-18 01:31:13 (GMT) |
commit | 3bbb37e09b30baf9ed5926cc765fee1175fb1828 (patch) | |
tree | b814105ac5d410825f6c13b92f22d87113abe87e /Lib/test | |
parent | 1e012e6c7f3346bf7977d1476d98a4087a84bd4b (diff) | |
download | cpython-3bbb37e09b30baf9ed5926cc765fee1175fb1828.zip cpython-3bbb37e09b30baf9ed5926cc765fee1175fb1828.tar.gz cpython-3bbb37e09b30baf9ed5926cc765fee1175fb1828.tar.bz2 |
Issue #23211: Fix patch for 3.4 differences.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_logging.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 4ef8c28..54be217 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -41,7 +41,7 @@ import sys import tempfile from test.script_helper import assert_python_ok from test.support import (captured_stdout, run_with_locale, run_unittest, - patch, requires_zlib, TestHandler, Matcher) + patch, requires_zlib, TestHandler, Matcher, HOST) import textwrap import time import unittest @@ -930,10 +930,10 @@ class SMTPHandlerTest(BaseTest): TIMEOUT = 8.0 def test_basic(self): sockmap = {} - server = TestSMTPServer((support.HOST, 0), self.process_message, 0.001, + server = TestSMTPServer((HOST, 0), self.process_message, 0.001, sockmap) server.start() - addr = (support.HOST, server.port) + addr = (HOST, server.port) h = logging.handlers.SMTPHandler(addr, 'me', 'you', 'Log', timeout=self.TIMEOUT) self.assertEqual(h.toaddrs, ['you']) |