This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author methane
Recipients asvetlov, christian.heimes, methane, r.david.murray, yarkot
Date 2018-04-09.11:49:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1523274571.22.0.682650639539.issue32753@psf.upfronthosting.co.za>
In-reply-to
Content
On Ubuntu 17.10 (OpenSSL 1.0.2g), this patch fixes test_poplib error.
But I don't know this patch is right.

$ git diff
diff --git a/Lib/test/test_poplib.py b/Lib/test/test_poplib.py
index 6abdc93879..d7a8857b05 100644
--- a/Lib/test/test_poplib.py
+++ b/Lib/test/test_poplib.py
@@ -180,7 +180,8 @@ class DummyPOP3Handler(asynchat.async_chat):
                 elif err.args[0] == ssl.SSL_ERROR_EOF:
                     return self.handle_close()
                 # TODO: SSLError does not expose alert information
-                elif "SSLV3_ALERT_BAD_CERTIFICATE" in err.args[1]:
+                elif ("SSLV3_ALERT_BAD_CERTIFICATE" in err.args[1]
+                        or "SSLV3_ALERT_CERTIFICATE_UNKNOWN" in err.args[1]):
                     return self.handle_close()
                 raise
             except OSError as err:
History
Date User Action Args
2018-04-09 11:49:31methanesetrecipients: + methane, christian.heimes, yarkot, r.david.murray, asvetlov
2018-04-09 11:49:31methanesetmessageid: <1523274571.22.0.682650639539.issue32753@psf.upfronthosting.co.za>
2018-04-09 11:49:31methanelinkissue32753 messages
2018-04-09 11:49:31methanecreate