summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2015-10-17 15:13:10 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2015-10-17 15:13:10 (GMT)
commit277640af0f528f71c9882a30c9325cd02b10a31a (patch)
treec1c53eaa31c3f6d88d36de8314ac6a5fae97b29d /Lib/test
parent4de9dae57dbcac5ac2243e56ad9b13e7a3a9d772 (diff)
downloadcpython-277640af0f528f71c9882a30c9325cd02b10a31a.zip
cpython-277640af0f528f71c9882a30c9325cd02b10a31a.tar.gz
cpython-277640af0f528f71c9882a30c9325cd02b10a31a.tar.bz2
Closes #25411: Improved Unicode support in SMTPHandler.
Diffstat (limited to 'Lib/test')
-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 deba2e4..b17f5e5 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -935,7 +935,7 @@ class SMTPHandlerTest(BaseTest):
timeout=self.TIMEOUT)
self.assertEqual(h.toaddrs, ['you'])
self.messages = []
- r = logging.makeLogRecord({'msg': 'Hello'})
+ r = logging.makeLogRecord({'msg': 'Hello \u2713'})
self.handled = threading.Event()
h.handle(r)
self.handled.wait(self.TIMEOUT) # 14314: don't wait forever
@@ -946,7 +946,7 @@ class SMTPHandlerTest(BaseTest):
self.assertEqual(mailfrom, 'me')
self.assertEqual(rcpttos, ['you'])
self.assertIn('\nSubject: Log\n', data)
- self.assertTrue(data.endswith('\n\nHello'))
+ self.assertTrue(data.endswith('\n\nHello \u2713'))
h.close()
def process_message(self, *args):