bpo-36348: IMAP4.logout() doesn't ignore exc by vstinner · Pull Request #12411 · python/cpython

matrixise

@vstinner

The imap.IMAP4.logout() method no longer ignores silently arbitrary
exceptions.

Changes:

* The IMAP4.logout() method now expects a "BYE" untagged response,
  rather than relying on _check_bye() which raises a self.abort()
  exception.
* IMAP4.__exit__() now does nothing if the client already logged out.
* Add more debug info if test_logout() tests fail.

@vstinner vstinner changed the title bpo-36348: IMAP4.logout() don't ignore bugs bpo-36348: IMAP4.logout() doesn't ignore exc

Mar 18, 2019