Skip to content

Commit 36fd655

Browse files
committed
issue34138: fix implementation of utf8 append and tests
1 parent 5a92499 commit 36fd655

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_imaplib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def cmd_APPEND(self, tag, args):
325325
typ, data = client.append(None, None, None, msg_string.encode('utf-8'))
326326
self.assertEqual(typ, 'OK')
327327
self.assertEqual(server.response,
328-
('UTF8 (%s)\r\n' % msg_string).encode('utf-8'))
328+
('%s\r\n' % msg_string).encode('utf-8'))
329329

330330
def test_search_disallows_charset_in_utf8_mode(self):
331331
class UTF8Server(SimpleIMAPHandler):
@@ -777,7 +777,7 @@ def cmd_APPEND(self, tag, args):
777777
self.assertEqual(typ, 'OK')
778778
self.assertEqual(
779779
server.response,
780-
('UTF8 (%s)\r\n' % msg_string).encode('utf-8')
780+
('%s\r\n' % msg_string).encode('utf-8')
781781
)
782782

783783
# XXX also need a test that makes sure that the Literal and Untagged_status

0 commit comments

Comments
 (0)