[Python-checkins] cpython (3.4): Issue #23211: Fix patch for 3.4 differences.

ned.deily python-checkins at python.org
Sun Jan 18 02:34:15 CET 2015


https://hg.python.org/cpython/rev/65ac2b992673
changeset:   94197:65ac2b992673
branch:      3.4
parent:      94195:90b664532d1c
user:        Ned Deily <nad at acm.org>
date:        Sat Jan 17 17:31:13 2015 -0800
summary:
  Issue #23211: Fix patch for 3.4 differences.

files:
  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
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -41,7 +41,7 @@
 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 @@
     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'])

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list