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 christian.heimes, miss-islington, pablogsal, steve.dower, vstinner
Date 2021-06-03.01:45:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1622684747.0.0.929405198319.issue43921@roundup.psfhosted.org>
In-reply-to
Content
In Python 3.9, test_pha_required_nocert() looks more strict, it requires read() to fail with the 'tlsv13 alert certificate required' error message:

        # receive alert
        with self.assertRaisesRegex(
                ssl.SSLError,
                'tlsv13 alert certificate required'):
            s.recv(1024)

In the main branch, it tolerates "EOF occurred" error:

    # test sometimes fails with EOF error. Test passes as long as
    # server aborts connection with an error.
    with self.assertRaisesRegex(
        ssl.SSLError,
        '(certificate required|EOF occurred)'
    ):
        # receive CertificateRequest
        data = s.recv(1024)
        self.assertEqual(data, b'OK\n')

        # send empty Certificate + Finish
        s.write(b'HASCERT')

        # receive alert
        s.recv(1024)
History
Date User Action Args
2021-06-03 01:45:47vstinnersetrecipients: + vstinner, christian.heimes, steve.dower, pablogsal, miss-islington
2021-06-03 01:45:47vstinnersetmessageid: <1622684747.0.0.929405198319.issue43921@roundup.psfhosted.org>
2021-06-03 01:45:46vstinnerlinkissue43921 messages
2021-06-03 01:45:46vstinnercreate