mirror of
https://github.com/python/cpython.git
synced 2025-09-03 15:31:08 +00:00
Issue #23211: Fix patch for 3.4 differences.
This commit is contained in:
parent
1e012e6c7f
commit
3bbb37e09b
1 changed files with 3 additions and 3 deletions
|
@ -41,7 +41,7 @@ import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
from test.script_helper import assert_python_ok
|
from test.script_helper import assert_python_ok
|
||||||
from test.support import (captured_stdout, run_with_locale, run_unittest,
|
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 textwrap
|
||||||
import time
|
import time
|
||||||
import unittest
|
import unittest
|
||||||
|
@ -930,10 +930,10 @@ class SMTPHandlerTest(BaseTest):
|
||||||
TIMEOUT = 8.0
|
TIMEOUT = 8.0
|
||||||
def test_basic(self):
|
def test_basic(self):
|
||||||
sockmap = {}
|
sockmap = {}
|
||||||
server = TestSMTPServer((support.HOST, 0), self.process_message, 0.001,
|
server = TestSMTPServer((HOST, 0), self.process_message, 0.001,
|
||||||
sockmap)
|
sockmap)
|
||||||
server.start()
|
server.start()
|
||||||
addr = (support.HOST, server.port)
|
addr = (HOST, server.port)
|
||||||
h = logging.handlers.SMTPHandler(addr, 'me', 'you', 'Log',
|
h = logging.handlers.SMTPHandler(addr, 'me', 'you', 'Log',
|
||||||
timeout=self.TIMEOUT)
|
timeout=self.TIMEOUT)
|
||||||
self.assertEqual(h.toaddrs, ['you'])
|
self.assertEqual(h.toaddrs, ['you'])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue