Merge: #25591: improve imap tests.

This commit is contained in:
R David Murray 2016-12-24 21:34:05 -05:00
commit a7613aa06c
2 changed files with 331 additions and 1 deletions

View file

@ -419,7 +419,7 @@ class IMAP4:
self.literal = _Authenticator(authobject).process
typ, dat = self._simple_command('AUTHENTICATE', mech)
if typ != 'OK':
raise self.error(dat[-1])
raise self.error(dat[-1].decode('utf-8', 'replace'))
self.state = 'AUTH'
return typ, dat