#25591: improve imap tests.

Patch by Maciej Szulik.
This commit is contained in:
R David Murray 2016-12-24 21:32:26 -05:00
parent e9ae5f9b16
commit b079c07f7d
2 changed files with 331 additions and 1 deletions

View file

@ -411,7 +411,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