Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3bbb37e

Browse files
committed
Issue #23211: Fix patch for 3.4 differences.
1 parent 1e012e6 commit 3bbb37e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/test/test_logging.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
import tempfile
4242
from test.script_helper import assert_python_ok
4343
from test.support import (captured_stdout, run_with_locale, run_unittest,
44-
patch, requires_zlib, TestHandler, Matcher)
44+
patch, requires_zlib, TestHandler, Matcher, HOST)
4545
import textwrap
4646
import time
4747
import unittest
@@ -930,10 +930,10 @@ class SMTPHandlerTest(BaseTest):
930930
TIMEOUT = 8.0
931931
def test_basic(self):
932932
sockmap = {}
933-
server = TestSMTPServer((support.HOST, 0), self.process_message, 0.001,
933+
server = TestSMTPServer((HOST, 0), self.process_message, 0.001,
934934
sockmap)
935935
server.start()
936-
addr = (support.HOST, server.port)
936+
addr = (HOST, server.port)
937937
h = logging.handlers.SMTPHandler(addr, 'me', 'you', 'Log',
938938
timeout=self.TIMEOUT)
939939
self.assertEqual(h.toaddrs, ['you'])

0 commit comments

Comments
 (0)