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 vstinner
Recipients Anthony Sottile, Mark.Shannon, domdfcoding, gvanrossum, pablogsal, vstinner
Date 2021-06-21.15:44:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1624290273.29.0.761271737255.issue44297@roundup.psfhosted.org>
In-reply-to
Content
Oh, I can still reproduce the issue on the main branch with this patch:

diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index cee97a8302..3f66818ae1 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -4499,7 +4499,7 @@ def msg_cb(conn, direction, version, content_type, msg_type, data):
                 # server aborts connection with an error.
                 with self.assertRaisesRegex(
                     ssl.SSLError,
-                    '(certificate required|EOF occurred)'
+                    'xxxxxxxxxxxxx'
                 ):
                     # receive CertificateRequest
                     data = s.recv(1024)



$ ./python -m test test_ssl -m test_pha_required_nocert -v
(...)
FAIL: test_pha_required_nocert (test.test_ssl.TestPostHandshakeAuth)
----------------------------------------------------------------------
(...)
Traceback (most recent call last):
  File "/home/vstinner/python/main/Lib/test/test_ssl.py", line -1, in test_pha_required_nocert
AssertionError: (...)
...


=> "line -1"
History
Date User Action Args
2021-06-21 15:44:33vstinnersetrecipients: + vstinner, gvanrossum, Mark.Shannon, Anthony Sottile, pablogsal, domdfcoding
2021-06-21 15:44:33vstinnersetmessageid: <1624290273.29.0.761271737255.issue44297@roundup.psfhosted.org>
2021-06-21 15:44:33vstinnerlinkissue44297 messages
2021-06-21 15:44:32vstinnercreate