summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-04-15 16:23:20 (GMT)
committerGitHub <noreply@github.com>2019-04-15 16:23:20 (GMT)
commit74125a60b7a477451ff2b8385bfbce3fdaee8dbc (patch)
tree2a6670b9046ee35a4dc19d907b862c158c33dbfe /Misc
parent0810fa79885276114d1a94e2ce61da367ebb1ffc (diff)
downloadcpython-74125a60b7a477451ff2b8385bfbce3fdaee8dbc.zip
cpython-74125a60b7a477451ff2b8385bfbce3fdaee8dbc.tar.gz
cpython-74125a60b7a477451ff2b8385bfbce3fdaee8dbc.tar.bz2
bpo-36348: IMAP4.logout() doesn't ignore exc (GH-12411)
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2019-03-18-16-16-55.bpo-36348.E0w_US.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-03-18-16-16-55.bpo-36348.E0w_US.rst b/Misc/NEWS.d/next/Library/2019-03-18-16-16-55.bpo-36348.E0w_US.rst
new file mode 100644
index 0000000..2320b4c
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2019-03-18-16-16-55.bpo-36348.E0w_US.rst
@@ -0,0 +1,2 @@
+The :meth:`imap.IMAP4.logout` method no longer ignores silently arbitrary
+exceptions.