Home - Summaries: (main) : (py3.11) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

lib-python/3/test/test_ssl.py::unmodified

== PyPy 3.12.13 (f591fa0fd4db, Jul 06 2026, 20:11:58) [PyPy 7.3.24-alpha0 with GCC 10.2.1 20210130 (Red Hat 10.2.1-11)]
== Linux-6.1.0-22-amd64-x86_64-with-glibc2.17 little-endian
== Python build: release with_assert
== cwd: /tmp/pytest/test_python_worker_3645209æ
== CPU count: 4
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network

Using random seed: 2256711892
0:00:00 load avg: 0.61 Run 1 test sequentially in a single process
0:00:00 load avg: 0.61 [1/1] test_ssl
test_ssl: testing with 'OpenSSL 3.3.1 4 Jun 2024' (3, 3, 0, 1, 0)
          under 'Linux-6.1.0-22-amd64-x86_64-with-glibc2.17'
          HAS_SNI = True
          OP_ALL = 0x80000050
          OP_NO_TLSv1_1 = 0x10000000
test_DER_to_PEM (test.test_ssl.BasicSocketTests.test_DER_to_PEM) ... ok
test_asn1object (test.test_ssl.BasicSocketTests.test_asn1object) ... ok
test_cert_time_to_seconds (test.test_ssl.BasicSocketTests.test_cert_time_to_seconds) ... ok
test_cert_time_to_seconds_locale (test.test_ssl.BasicSocketTests.test_cert_time_to_seconds_locale) ... skipped 'locale-specific month name needs to be different from C locale'
test_cert_time_to_seconds_timezone (test.test_ssl.BasicSocketTests.test_cert_time_to_seconds_timezone) ... skipped 'local time needs to be different from UTC'
test_connect_ex_error (test.test_ssl.BasicSocketTests.test_connect_ex_error) ... ok
test_constants (test.test_ssl.BasicSocketTests.test_constants) ... ok
test_dealloc_warn (test.test_ssl.BasicSocketTests.test_dealloc_warn) ... ok
test_empty_cert (test.test_ssl.BasicSocketTests.test_empty_cert)
Wrapping with an empty cert file ... ok
test_enum_certificates (test.test_ssl.BasicSocketTests.test_enum_certificates) ... skipped 'Windows specific'
test_enum_crls (test.test_ssl.BasicSocketTests.test_enum_crls) ... skipped 'Windows specific'
test_get_default_verify_paths (test.test_ssl.BasicSocketTests.test_get_default_verify_paths) ... ok
test_malformed_cert (test.test_ssl.BasicSocketTests.test_malformed_cert)
Wrapping with a badly formatted certificate (syntax error) ... ok
test_malformed_key (test.test_ssl.BasicSocketTests.test_malformed_key)
Wrapping with a badly formatted key (syntax error) ... ok
test_openssl111_deprecations (test.test_ssl.BasicSocketTests.test_openssl111_deprecations) ... ok
test_openssl_version (test.test_ssl.BasicSocketTests.test_openssl_version) ... ok
test_options (test.test_ssl.BasicSocketTests.test_options) ... ok
test_parse_all_sans (test.test_ssl.BasicSocketTests.test_parse_all_sans) ... ok
test_parse_cert (test.test_ssl.BasicSocketTests.test_parse_cert) ... 
{'OCSP': ('http://ocsp.verisign.com',),
 'caIssuers': ('http://SVRIntl-G3-aia.verisign.com/SVRIntlG3.cer',),
 'crlDistributionPoints': ('http://SVRIntl-G3-crl.verisign.com/SVRIntlG3.crl',),
 'issuer': ((('countryName', 'US'),),
            (('organizationName', 'VeriSign, Inc.'),),
            (('organizationalUnitName', 'VeriSign Trust Network'),),
            (('organizationalUnitName',
              'Terms of use at https://www.verisign.com/rpa (c)10'),),
            (('commonName', 'VeriSign Class 3 International Server CA - G3'),)),
 'notAfter': 'Sep 20 23:59:59 2012 GMT',
 'notBefore': 'Sep 21 00:00:00 2011 GMT',
 'serialNumber': '2EE6EA7640A075CEE5005F4D7C79549A',
 'subject': ((('countryName', 'FI'),),
             (('stateOrProvinceName', 'Espoo'),),
             (('localityName', 'Espoo'),),
             (('organizationName', 'Nokia'),),
             (('organizationalUnitName', 'BI'),),
             (('commonName', 'projects.developer.nokia.com'),)),
 'subjectAltName': (('DNS', 'projects.developer.nokia.com'),
                    ('DNS', 'projects.forum.nokia.com')),
 'version': 3}
ok
test_parse_cert_CVE_2013_4238 (test.test_ssl.BasicSocketTests.test_parse_cert_CVE_2013_4238) ... 
{'issuer': ((('countryName', 'US'),),
            (('stateOrProvinceName', 'Oregon'),),
            (('localityName', 'Beaverton'),),
            (('organizationName', 'Python Software Foundation'),),
            (('organizationalUnitName', 'Python Core Development'),),
            (('commonName', 'null.python.org\x00example.org'),),
            (('emailAddress', 'python-dev@python.org'),)),
 'notAfter': 'Aug  7 13:12:52 2013 GMT',
 'notBefore': 'Aug  7 13:11:52 2013 GMT',
 'serialNumber': '00',
 'subject': ((('countryName', 'US'),),
             (('stateOrProvinceName', 'Oregon'),),
             (('localityName', 'Beaverton'),),
             (('organizationName', 'Python Software Foundation'),),
             (('organizationalUnitName', 'Python Core Development'),),
             (('commonName', 'null.python.org\x00example.org'),),
             (('emailAddress', 'python-dev@python.org'),)),
 'subjectAltName': (('DNS', 'altnull.python.org\x00example.com'),
                    ('email', 'null@python.org\x00user@example.org'),
                    ('URI', 'http://null.python.org\x00http://example.org'),
                    ('IP Address', '192.0.2.1'),
                    ('IP Address', '2001:DB8:0:0:0:0:0:1')),
 'version': 3}
ok
test_parse_cert_CVE_2019_5010 (test.test_ssl.BasicSocketTests.test_parse_cert_CVE_2019_5010) ... 
{'issuer': ((('countryName', 'UK'),), (('commonName', 'cody-ca'),)),
 'notAfter': 'Jun 14 18:00:58 2028 GMT',
 'notBefore': 'Jun 18 18:00:58 2018 GMT',
 'serialNumber': '02',
 'subject': ((('countryName', 'UK'),),
             (('commonName', 'codenomicon-vm-2.test.lal.cisco.com'),)),
 'subjectAltName': (('DNS', 'codenomicon-vm-2.test.lal.cisco.com'),),
 'version': 3}
ok
test_private_init (test.test_ssl.BasicSocketTests.test_private_init) ... ok
test_purpose_enum (test.test_ssl.BasicSocketTests.test_purpose_enum) ... ok
test_random (test.test_ssl.BasicSocketTests.test_random) ... 
 RAND_status is 1 (sufficient randomness)
ok
test_read_write_zero (test.test_ssl.BasicSocketTests.test_read_write_zero) ...  server:  new connection from ('127.0.0.1', 55328)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_refcycle (test.test_ssl.BasicSocketTests.test_refcycle) ... skipped 'implementation detail specific to cpython'
test_server_side (test.test_ssl.BasicSocketTests.test_server_side) ... ok
test_ssl_types (test.test_ssl.BasicSocketTests.test_ssl_types) ... ERROR
test_str_for_enums (test.test_ssl.BasicSocketTests.test_str_for_enums) ... FAIL
test_timeout (test.test_ssl.BasicSocketTests.test_timeout) ... ok
test_tls_unique_channel_binding (test.test_ssl.BasicSocketTests.test_tls_unique_channel_binding) ... ok
test_unknown_channel_binding (test.test_ssl.BasicSocketTests.test_unknown_channel_binding) ... ok
test_unsupported_dtls (test.test_ssl.BasicSocketTests.test_unsupported_dtls) ... ok
test_wrapped_unconnected (test.test_ssl.BasicSocketTests.test_wrapped_unconnected) ... ok
test__create_stdlib_context (test.test_ssl.ContextTests.test__create_stdlib_context) ... ok
test_cert_store_stats (test.test_ssl.ContextTests.test_cert_store_stats) ... ok
test_check_hostname (test.test_ssl.ContextTests.test_check_hostname) ... ok
test_ciphers (test.test_ssl.ContextTests.test_ciphers) ... ok
test_constructor (test.test_ssl.ContextTests.test_constructor) ... ok
test_context_client_server (test.test_ssl.ContextTests.test_context_client_server) ... ok
test_context_custom_class (test.test_ssl.ContextTests.test_context_custom_class) ... ok
test_create_default_context (test.test_ssl.ContextTests.test_create_default_context) ... ok
test_get_ca_certs (test.test_ssl.ContextTests.test_get_ca_certs) ... ok
test_get_ciphers (test.test_ssl.ContextTests.test_get_ciphers) ... ok
test_hostname_checks_common_name (test.test_ssl.ContextTests.test_hostname_checks_common_name) ... ok
test_load_cert_chain (test.test_ssl.ContextTests.test_load_cert_chain) ... ok
test_load_default_certs (test.test_ssl.ContextTests.test_load_default_certs) ... ok
test_load_default_certs_env (test.test_ssl.ContextTests.test_load_default_certs_env) ... ok
test_load_default_certs_env_windows (test.test_ssl.ContextTests.test_load_default_certs_env_windows) ... skipped 'Windows specific'
test_load_dh_params (test.test_ssl.ContextTests.test_load_dh_params) ... ok
test_load_verify_cadata (test.test_ssl.ContextTests.test_load_verify_cadata) ... FAIL
test_load_verify_locations (test.test_ssl.ContextTests.test_load_verify_locations) ... ok
test_min_max_version (test.test_ssl.ContextTests.test_min_max_version) ... ok
test_num_tickest (test.test_ssl.ContextTests.test_num_tickest) ... ok
test_options (test.test_ssl.ContextTests.test_options) ... ok
test_python_ciphers (test.test_ssl.ContextTests.test_python_ciphers) ... skipped 'Test applies only to Python default ciphers'
test_security_level (test.test_ssl.ContextTests.test_security_level) ... skipped 'requires OpenSSL >= 1.1.0'
test_session_stats (test.test_ssl.ContextTests.test_session_stats) ... ok
test_set_default_verify_paths (test.test_ssl.ContextTests.test_set_default_verify_paths) ... ok
test_set_ecdh_curve (test.test_ssl.ContextTests.test_set_ecdh_curve) ... ok
test_sni_callback (test.test_ssl.ContextTests.test_sni_callback) ... ok
test_sni_callback_refcycle (test.test_ssl.ContextTests.test_sni_callback_refcycle) ... ok
test_verify_flags (test.test_ssl.ContextTests.test_verify_flags) ... ok
test_verify_mode_protocol (test.test_ssl.ContextTests.test_verify_mode_protocol) ... ok
test_buffer_types (test.test_ssl.MemoryBIOTests.test_buffer_types) ... ok
test_eof (test.test_ssl.MemoryBIOTests.test_eof) ... ok
test_error_types (test.test_ssl.MemoryBIOTests.test_error_types) ... ok
test_pending (test.test_ssl.MemoryBIOTests.test_pending) ... ok
test_read_write (test.test_ssl.MemoryBIOTests.test_read_write) ... ok
test_get_server_certificate_ipv6 (test.test_ssl.NetworkedTests.test_get_server_certificate_ipv6) ... skipped "resource 'walltime' is not enabled"
test_timeout_connect_ex (test.test_ssl.NetworkedTests.test_timeout_connect_ex) ... ok
test_bad_server_hostname (test.test_ssl.SSLErrorTests.test_bad_server_hostname) ... ok
test_lib_reason (test.test_ssl.SSLErrorTests.test_lib_reason) ... ok
test_str (test.test_ssl.SSLErrorTests.test_str) ... ok
test_subclass (test.test_ssl.SSLErrorTests.test_subclass) ... ok
test_private_init (test.test_ssl.SSLObjectTests.test_private_init) ... ok
test_unwrap (test.test_ssl.SSLObjectTests.test_unwrap) ... ok
test_bio_handshake (test.test_ssl.SimpleBackgroundTests.test_bio_handshake) ...  server:  new connection from ('127.0.0.1', 58768)
Needed 2 calls to complete do_handshake().
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
Needed 3 calls to complete unwrap().
 connection timeout TimeoutError('timed out')
ok
test_bio_read_write_data (test.test_ssl.SimpleBackgroundTests.test_bio_read_write_data) ...  server:  new connection from ('127.0.0.1', 37538)
Needed 2 calls to complete do_handshake().
Needed 1 calls to complete write().
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
Needed 4 calls to complete read().
Needed 2 calls to complete unwrap().
 connection timeout TimeoutError('timed out')
ok
test_ciphers (test.test_ssl.SimpleBackgroundTests.test_ciphers) ...  server:  new connection from ('127.0.0.1', 54298)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 54306)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 connection timeout TimeoutError('timed out')
ok
test_connect (test.test_ssl.SimpleBackgroundTests.test_connect) ...  server:  new connection from ('127.0.0.1', 58860)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 58866)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_connect_cadata (test.test_ssl.SimpleBackgroundTests.test_connect_cadata) ...  server:  new connection from ('127.0.0.1', 40432)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 40438)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_connect_capath (test.test_ssl.SimpleBackgroundTests.test_connect_capath) ...  server:  new connection from ('127.0.0.1', 55674)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 55684)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_connect_ex (test.test_ssl.SimpleBackgroundTests.test_connect_ex) ...  server:  new connection from ('127.0.0.1', 60356)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_connect_fail (test.test_ssl.SimpleBackgroundTests.test_connect_fail) ...  server:  new connection from ('127.0.0.1', 38834)

 server:  bad connection attempt from ('127.0.0.1', 38834):
Traceback (most recent call last):
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ssl.py", line 2273, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
                                       ^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 455, in wrap_socket
    return self.sslsocket_class._create(
                                ^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 1041, in _create
    self.do_handshake()
         ^^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 1319, in do_handshake
    self._sslobj.do_handshake()
                 ^^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 550, in do_handshake
    raise pyssl_error(self, ret)
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca
 connection timeout TimeoutError('timed out')
ok
test_connect_with_context (test.test_ssl.SimpleBackgroundTests.test_connect_with_context) ...  server:  new connection from ('127.0.0.1', 35728)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 35744)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 35756)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_connect_with_context_fail (test.test_ssl.SimpleBackgroundTests.test_connect_with_context_fail) ...  server:  new connection from ('127.0.0.1', 46364)

 server:  bad connection attempt from ('127.0.0.1', 46364):
Traceback (most recent call last):
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ssl.py", line 2273, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
                                       ^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 455, in wrap_socket
    return self.sslsocket_class._create(
                                ^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 1041, in _create
    self.do_handshake()
         ^^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 1319, in do_handshake
    self._sslobj.do_handshake()
                 ^^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 550, in do_handshake
    raise pyssl_error(self, ret)
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca
ok
test_context_setget (test.test_ssl.SimpleBackgroundTests.test_context_setget) ...  server:  new connection from ('127.0.0.1', 46900)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_get_ca_certs_capath (test.test_ssl.SimpleBackgroundTests.test_get_ca_certs_capath) ...  server:  new connection from ('127.0.0.1', 52546)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 connection timeout TimeoutError('timed out')
ok
test_get_server_certificate (test.test_ssl.SimpleBackgroundTests.test_get_server_certificate) ...  server:  new connection from ('127.0.0.1', 47340)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 47346)

Verified certificate for localhost:51521 is
-----BEGIN CERTIFICATE-----
MIIF8TCCBFmgAwIBAgIJAMstgJlaaVJcMA0GCSqGSIb3DQEBCwUAME0xCzAJBgNV
BAYTAlhZMSYwJAYDVQQKDB1QeXRob24gU29mdHdhcmUgRm91bmRhdGlvbiBDQTEW
MBQGA1UEAwwNb3VyLWNhLXNlcnZlcjAeFw0xODA4MjkxNDIzMTZaFw0zNzEwMjgx
NDIzMTZaMF8xCzAJBgNVBAYTAlhZMRcwFQYDVQQHDA5DYXN0bGUgQW50aHJheDEj
MCEGA1UECgwaUHl0aG9uIFNvZnR3YXJlIEZvdW5kYXRpb24xEjAQBgNVBAMMCWxv
Y2FsaG9zdDCCAaIwDQYJKoZIhvcNAQEBBQADggGPADCCAYoCggGBAMW0s615CVCi
M3vO2S7HubSGYYqQ/WGHSFsqpNwPzuOQsCoDBlZ6eNkyMJttne8/4A5sIiRggrM9
djtiL4fkzc7aZcgPGgcaMv8Za2gTIM1e+b1QL4xG5I6rYxoscdAbRHHZPFxisxVQ
ztv3euk3UsZGsK/WAhJczgS8QmigBHsBp2PSkb+jR+oMB0WMfpBluGfWJmV754Zu
Nx92Af8fQXx2fU88ahWIdeJxuxDiQHrTTY9/5pc/hvZAoBt+XI0cQoc8cQ45NesW
Mx1z5uopbbh6kSwxkjn2rH2FT/hG+nf+/68TBMvs2buKWm3NmfZy8YJbf0sLSc1g
s7OQ7cfzHADvmHq7KR0H5Y7+/YIogr0z9k771A2uZqiR8oNqYKTf1vyGULA0voux
Wm93ddNLlafhhaf3YSqKW1Qkmg+julztVN1YKDjNUWfhDxmHg0U2f+pMHyUQyCuw
1NXlzJnvOGgGJQxI7jluajY2ycTtx78lSGWp7m6HQ9PUwgGBNX6gMwIDAQABo4IB
wDCCAbwwFAYDVR0RBA0wC4IJbG9jYWxob3N0MA4GA1UdDwEB/wQEAwIFoDAdBgNV
HSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDAYDVR0TAQH/BAIwADAdBgNVHQ4E
FgQUhXUQJdAsgFAkGltXcN61y3GpO3swfQYDVR0jBHYwdIAUs4qgorpx8agkedSk
WyU2FR5JyM2hUaRPME0xCzAJBgNVBAYTAlhZMSYwJAYDVQQKDB1QeXRob24gU29m
dHdhcmUgRm91bmRhdGlvbiBDQTEWMBQGA1UEAwwNb3VyLWNhLXNlcnZlcoIJAMst
gJlaaVJbMIGDBggrBgEFBQcBAQR3MHUwPAYIKwYBBQUHMAKGMGh0dHA6Ly90ZXN0
Y2EucHl0aG9udGVzdC5uZXQvdGVzdGNhL3B5Y2FjZXJ0LmNlcjA1BggrBgEFBQcw
AYYpaHR0cDovL3Rlc3RjYS5weXRob250ZXN0Lm5ldC90ZXN0Y2Evb2NzcC8wQwYD
VR0fBDwwOjA4oDagNIYyaHR0cDovL3Rlc3RjYS5weXRob250ZXN0Lm5ldC90ZXN0
Y2EvcmV2b2NhdGlvbi5jcmwwDQYJKoZIhvcNAQELBQADggGBAJXzVrvVjHC90d7a
Y7Ap19tgJ9ZZ/WEbMMbQXXN9NOFo4yimieZgvYnTDvRyrXJ2+IYh/XU8+G2+nATh
ggNpbK7QVbpe8sr1D47W2Y3IVkb0+Kx0Khl7jkdwH/v7vWkCoaVKbiEcBBQVVb+/
JEPIFwO+Pizq28ivHf1S39YVSZ7CRGnv8UVDg7IezxQcEz/+nHHL5xsYVjanr0Tx
C6F5REb5Q0Yp2LDKSU1lYNP2jnS8Yp4ejUspmrQN8KJ3WzTkES+nJcXlB3YSrr51
cxXkCn1TOFY/eW1uyu2Aq1btfosc5+PUYjAicOcpsgM8/vo98DbATRGimdMpMSe4
xbgVozxPm3NeK7L7y/11R7gXvSHY5sG5/3OB2CUIbQheHKWDUN5n5trQjlrT8iqx
P7iAIQdqcRVtBetRs1mN1BVGfgKoEwEWmb0DzHBxKiMWeK/R1QGdBLRjk5oEOpIu
5n5zk6X+UJu9DupUhm985RR3/sIoWkoO1y2M6e1hKbJT/2wEvA==
-----END CERTIFICATE-----

 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_get_server_certificate_fail (test.test_ssl.SimpleBackgroundTests.test_get_server_certificate_fail) ...  server:  new connection from ('127.0.0.1', 50330)
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate

 server:  bad connection attempt from ('127.0.0.1', 50330):
Traceback (most recent call last):
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ssl.py", line 2273, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
                                       ^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 455, in wrap_socket
    return self.sslsocket_class._create(
                                ^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 1041, in _create
    self.do_handshake()
         ^^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 1319, in do_handshake
    self._sslobj.do_handshake()
                 ^^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 550, in do_handshake
    raise pyssl_error(self, ret)
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca
ok
test_get_server_certificate_sni (test.test_ssl.SimpleBackgroundTests.test_get_server_certificate_sni) ...  server:  new connection from ('127.0.0.1', 34550)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 34566)

Verified certificate for localhost:43113 is
-----BEGIN CERTIFICATE-----
MIIF8TCCBFmgAwIBAgIJAMstgJlaaVJcMA0GCSqGSIb3DQEBCwUAME0xCzAJBgNV
BAYTAlhZMSYwJAYDVQQKDB1QeXRob24gU29mdHdhcmUgRm91bmRhdGlvbiBDQTEW
MBQGA1UEAwwNb3VyLWNhLXNlcnZlcjAeFw0xODA4MjkxNDIzMTZaFw0zNzEwMjgx
NDIzMTZaMF8xCzAJBgNVBAYTAlhZMRcwFQYDVQQHDA5DYXN0bGUgQW50aHJheDEj
MCEGA1UECgwaUHl0aG9uIFNvZnR3YXJlIEZvdW5kYXRpb24xEjAQBgNVBAMMCWxv
Y2FsaG9zdDCCAaIwDQYJKoZIhvcNAQEBBQADggGPADCCAYoCggGBAMW0s615CVCi
M3vO2S7HubSGYYqQ/WGHSFsqpNwPzuOQsCoDBlZ6eNkyMJttne8/4A5sIiRggrM9
djtiL4fkzc7aZcgPGgcaMv8Za2gTIM1e+b1QL4xG5I6rYxoscdAbRHHZPFxisxVQ
ztv3euk3UsZGsK/WAhJczgS8QmigBHsBp2PSkb+jR+oMB0WMfpBluGfWJmV754Zu
Nx92Af8fQXx2fU88ahWIdeJxuxDiQHrTTY9/5pc/hvZAoBt+XI0cQoc8cQ45NesW
Mx1z5uopbbh6kSwxkjn2rH2FT/hG+nf+/68TBMvs2buKWm3NmfZy8YJbf0sLSc1g
s7OQ7cfzHADvmHq7KR0H5Y7+/YIogr0z9k771A2uZqiR8oNqYKTf1vyGULA0voux
Wm93ddNLlafhhaf3YSqKW1Qkmg+julztVN1YKDjNUWfhDxmHg0U2f+pMHyUQyCuw
1NXlzJnvOGgGJQxI7jluajY2ycTtx78lSGWp7m6HQ9PUwgGBNX6gMwIDAQABo4IB
wDCCAbwwFAYDVR0RBA0wC4IJbG9jYWxob3N0MA4GA1UdDwEB/wQEAwIFoDAdBgNV
HSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDAYDVR0TAQH/BAIwADAdBgNVHQ4E
FgQUhXUQJdAsgFAkGltXcN61y3GpO3swfQYDVR0jBHYwdIAUs4qgorpx8agkedSk
WyU2FR5JyM2hUaRPME0xCzAJBgNVBAYTAlhZMSYwJAYDVQQKDB1QeXRob24gU29m
dHdhcmUgRm91bmRhdGlvbiBDQTEWMBQGA1UEAwwNb3VyLWNhLXNlcnZlcoIJAMst
gJlaaVJbMIGDBggrBgEFBQcBAQR3MHUwPAYIKwYBBQUHMAKGMGh0dHA6Ly90ZXN0
Y2EucHl0aG9udGVzdC5uZXQvdGVzdGNhL3B5Y2FjZXJ0LmNlcjA1BggrBgEFBQcw
AYYpaHR0cDovL3Rlc3RjYS5weXRob250ZXN0Lm5ldC90ZXN0Y2Evb2NzcC8wQwYD
VR0fBDwwOjA4oDagNIYyaHR0cDovL3Rlc3RjYS5weXRob250ZXN0Lm5ldC90ZXN0
Y2EvcmV2b2NhdGlvbi5jcmwwDQYJKoZIhvcNAQELBQADggGBAJXzVrvVjHC90d7a
Y7Ap19tgJ9ZZ/WEbMMbQXXN9NOFo4yimieZgvYnTDvRyrXJ2+IYh/XU8+G2+nATh
ggNpbK7QVbpe8sr1D47W2Y3IVkb0+Kx0Khl7jkdwH/v7vWkCoaVKbiEcBBQVVb+/
JEPIFwO+Pizq28ivHf1S39YVSZ7CRGnv8UVDg7IezxQcEz/+nHHL5xsYVjanr0Tx
C6F5REb5Q0Yp2LDKSU1lYNP2jnS8Yp4ejUspmrQN8KJ3WzTkES+nJcXlB3YSrr51
cxXkCn1TOFY/eW1uyu2Aq1btfosc5+PUYjAicOcpsgM8/vo98DbATRGimdMpMSe4
xbgVozxPm3NeK7L7y/11R7gXvSHY5sG5/3OB2CUIbQheHKWDUN5n5trQjlrT8iqx
P7iAIQdqcRVtBetRs1mN1BVGfgKoEwEWmb0DzHBxKiMWeK/R1QGdBLRjk5oEOpIu
5n5zk6X+UJu9DupUhm985RR3/sIoWkoO1y2M6e1hKbJT/2wEvA==
-----END CERTIFICATE-----

 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_get_server_certificate_timeout (test.test_ssl.SimpleBackgroundTests.test_get_server_certificate_timeout) ...  server:  new connection from ('127.0.0.1', 44280)

 server:  bad connection attempt from ('127.0.0.1', 44280):
Traceback (most recent call last):
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ssl.py", line 2273, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
                                       ^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 455, in wrap_socket
    return self.sslsocket_class._create(
                                ^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 1041, in _create
    self.do_handshake()
         ^^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 1319, in do_handshake
    self._sslobj.do_handshake()
                 ^^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 550, in do_handshake
    raise pyssl_error(self, ret)
 _cffi_ssl._stdssl.error.SSLEOFError: [SSL: UNEXPECTED_EOF_WHILE_READING] unexpected eof while reading
ok
test_makefile_close (test.test_ssl.SimpleBackgroundTests.test_makefile_close) ...  server:  new connection from ('127.0.0.1', 43552)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 connection timeout TimeoutError('timed out')
ok
test_non_blocking_connect_ex (test.test_ssl.SimpleBackgroundTests.test_non_blocking_connect_ex) ...  server:  new connection from ('127.0.0.1', 36134)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_non_blocking_handshake (test.test_ssl.SimpleBackgroundTests.test_non_blocking_handshake) ...  server:  new connection from ('127.0.0.1', 39472)

Needed 2 calls to do_handshake() to establish session.
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_transport_eof (test.test_ssl.SimpleBackgroundTests.test_transport_eof) ...  server:  new connection from ('127.0.0.1', 47908)
Needed 2 calls to complete do_handshake().
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_alertdescription (test.test_ssl.TestEnumerations.test_alertdescription) ... ok
test_options (test.test_ssl.TestEnumerations.test_options) ... ok
test_sslerrornumber (test.test_ssl.TestEnumerations.test_sslerrornumber) ... ok
test_sslmethod (test.test_ssl.TestEnumerations.test_sslmethod) ... ok
test_tlsalerttype (test.test_ssl.TestEnumerations.test_tlsalerttype) ... ok
test_tlscontenttype (test.test_ssl.TestEnumerations.test_tlscontenttype) ... ok
test_tlsmessagetype (test.test_ssl.TestEnumerations.test_tlsmessagetype) ... ok
test_tlsversion (test.test_ssl.TestEnumerations.test_tlsversion) ... ok
test_verifyflags (test.test_ssl.TestEnumerations.test_verifyflags) ... ok
test_verifymode (test.test_ssl.TestEnumerations.test_verifymode) ... ok
test_bpo37428_pha_cert_none (test.test_ssl.TestPostHandshakeAuth.test_bpo37428_pha_cert_none) ... ok
test_internal_chain_client (test.test_ssl.TestPostHandshakeAuth.test_internal_chain_client) ... ok
test_internal_chain_server (test.test_ssl.TestPostHandshakeAuth.test_internal_chain_server) ... ok
test_pha_no_pha_client (test.test_ssl.TestPostHandshakeAuth.test_pha_no_pha_client) ... ok
test_pha_no_pha_server (test.test_ssl.TestPostHandshakeAuth.test_pha_no_pha_server) ... ok
test_pha_not_tls13 (test.test_ssl.TestPostHandshakeAuth.test_pha_not_tls13) ... ok
test_pha_optional (test.test_ssl.TestPostHandshakeAuth.test_pha_optional) ... 
ok
test_pha_optional_nocert (test.test_ssl.TestPostHandshakeAuth.test_pha_optional_nocert) ... 
ok
test_pha_required (test.test_ssl.TestPostHandshakeAuth.test_pha_required) ... ok
test_pha_required_nocert (test.test_ssl.TestPostHandshakeAuth.test_pha_required_nocert) ...  server:  new connection from ('127.0.0.1', 35232)
 client cert is None
 client did not provide a cert
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
TLS: (<ssl.SSLSocket fd=13, family=2, type=1, proto=0, laddr=('127.0.0.1', 46055), raddr=('127.0.0.1', 35232)>, 'write', <TLSVersion.TLSv1_3: 772>, <_TLSContentType.ALERT: 21>, <_TLSAlertType.CERTIFICATE_REQUIRED: 116>, b'\x02t')
Test server failure:
Traceback (most recent call last):
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ssl.py", line 2357, in run
    msg = self.read()
               ^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ssl.py", line 2334, in read
    return self.sslconn.read()
                        ^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 1105, in read
    return self._sslobj.read(len)
                        ^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 660, in read
    return self._read_no_buf(length)
                ^^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 717, in _read_no_buf
    raise pyssl_error(self, retval)
 ssl.SSLError: [SSL: PEER_DID_NOT_RETURN_A_CERTIFICATE] peer did not return a certificate
 connection timeout TimeoutError('timed out')
ok
test_pha_setter (test.test_ssl.TestPostHandshakeAuth.test_pha_setter) ... ok
test_https_client_non_tls_response_ignored (test.test_ssl.TestPreHandshakeClose.test_https_client_non_tls_response_ignored) ... ok
test_preauth_data_to_tls_client (test.test_ssl.TestPreHandshakeClose.test_preauth_data_to_tls_client) ... ok
test_preauth_data_to_tls_server (test.test_ssl.TestPreHandshakeClose.test_preauth_data_to_tls_server) ... ok
test_keylog_defaults (test.test_ssl.TestSSLDebug.test_keylog_defaults) ... ok
test_keylog_env (test.test_ssl.TestSSLDebug.test_keylog_env) ... ok
test_keylog_filename (test.test_ssl.TestSSLDebug.test_keylog_filename) ... ok
test_msg_callback (test.test_ssl.TestSSLDebug.test_msg_callback) ... ok
test_msg_callback_deadlock_bpo43577 (test.test_ssl.TestSSLDebug.test_msg_callback_deadlock_bpo43577) ... ok
test_msg_callback_tls12 (test.test_ssl.TestSSLDebug.test_msg_callback_tls12) ... ok
test_PROTOCOL_TLS (test.test_ssl.ThreadedTests.test_PROTOCOL_TLS)
Connecting to an SSLv23 server with various client options ... 
 PROTOCOL_TLS->PROTOCOL_TLS CERT_NONE
 connection timeout TimeoutError('timed out')
 PROTOCOL_TLS->PROTOCOL_TLS CERT_OPTIONAL
 connection timeout TimeoutError('timed out')
 PROTOCOL_TLS->PROTOCOL_TLS CERT_REQUIRED
 connection timeout TimeoutError('timed out')
 PROTOCOL_TLS->PROTOCOL_TLS CERT_NONE
 connection timeout TimeoutError('timed out')
ok
test_alpn_protocols (test.test_ssl.ThreadedTests.test_alpn_protocols) ...  server:  new connection from ('127.0.0.1', 42766)
 client:  sending b'FOO\n'...
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  closing connection.
 connection timeout TimeoutError('timed out')
 server:  new connection from ('127.0.0.1', 35838)
 client:  sending b'FOO\n'...
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  closing connection.
 connection timeout TimeoutError('timed out')
 server:  new connection from ('127.0.0.1', 57028)
 client:  sending b'FOO\n'...
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  closing connection.
 server:  new connection from ('127.0.0.1', 59218)
 client:  sending b'FOO\n'...
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  closing connection.
 connection timeout TimeoutError('timed out')
ok
test_asyncore_server (test.test_ssl.ThreadedTests.test_asyncore_server)
Check the example asyncore integration. ... 
 server:  new connection from 127.0.0.1:43234
 client:  sending b'FOO\n'...
 server:  read b'FOO\n' from client
 client:  read b'foo\n'
 client:  closing connection.
 client:  connection closed.
 cleanup: stopping server.
 cleanup: joining server thread.
 server:  read b'over\n' from client
 server:  closed connection <ssl.SSLSocket [closed] fd=-1, family=2, type=1, proto=0>
 server:  read b'' from client
 cleanup: successfully joined.
ok
test_check_hostname (test.test_ssl.ThreadedTests.test_check_hostname) ... 
 server:  new connection from ('127.0.0.1', 47768)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 59366)

 server:  bad connection attempt from ('127.0.0.1', 59366):
Traceback (most recent call last):
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ssl.py", line 2273, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
                                       ^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 455, in wrap_socket
    return self.sslsocket_class._create(
                                ^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 1041, in _create
    self.do_handshake()
         ^^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 1319, in do_handshake
    self._sslobj.do_handshake()
                 ^^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 550, in do_handshake
    raise pyssl_error(self, ret)
 ssl.SSLError: [SSL: SSLV3_ALERT_BAD_CERTIFICATE] ssl/tls alert bad certificate
 connection timeout TimeoutError('timed out')
ok
test_check_hostname_idn (test.test_ssl.ThreadedTests.test_check_hostname_idn) ... 
 server:  new connection from ('127.0.0.1', 49382)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 34808)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 54394)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 59562)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 35198)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 42148)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 54466)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 48988)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 41042)

 server:  bad connection attempt from ('127.0.0.1', 41042):
Traceback (most recent call last):
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ssl.py", line 2273, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
                                       ^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 455, in wrap_socket
    return self.sslsocket_class._create(
                                ^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 1041, in _create
    self.do_handshake()
         ^^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 1319, in do_handshake
    self._sslobj.do_handshake()
                 ^^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 550, in do_handshake
    raise pyssl_error(self, ret)
 ssl.SSLError: [SSL: SSLV3_ALERT_BAD_CERTIFICATE] ssl/tls alert bad certificate
 connection timeout TimeoutError('timed out')
 connection timeout TimeoutError('timed out')
ok
test_compression (test.test_ssl.ThreadedTests.test_compression) ...  server:  new connection from ('127.0.0.1', 50456)
 client:  sending b'FOO\n'...
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  closing connection.
 connection timeout TimeoutError('timed out')
 got compression: None
ok
test_compression_disabled (test.test_ssl.ThreadedTests.test_compression_disabled) ...  server:  new connection from ('127.0.0.1', 43012)
 client:  sending b'FOO\n'...
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  closing connection.
 connection timeout TimeoutError('timed out')
ok
test_crl_check (test.test_ssl.ThreadedTests.test_crl_check) ... 
 server:  new connection from ('127.0.0.1', 56968)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 36310)

 server:  bad connection attempt from ('127.0.0.1', 36310):
Traceback (most recent call last):
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ssl.py", line 2273, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
                                       ^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 455, in wrap_socket
    return self.sslsocket_class._create(
                                ^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 1041, in _create
    self.do_handshake()
         ^^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 1319, in do_handshake
    self._sslobj.do_handshake()
                 ^^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 550, in do_handshake
    raise pyssl_error(self, ret)
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca
 connection timeout TimeoutError('timed out')
 server:  new connection from ('127.0.0.1', 41706)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_default_ecdh_curve (test.test_ssl.ThreadedTests.test_default_ecdh_curve) ...  server:  new connection from ('127.0.0.1', 49174)
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1.2', 256)
ok
test_dh_params (test.test_ssl.ThreadedTests.test_dh_params) ... skipped "libssl doesn't support ephemeral DH"
test_do_handshake_enotconn (test.test_ssl.ThreadedTests.test_do_handshake_enotconn) ... ok
test_dual_rsa_ecc (test.test_ssl.ThreadedTests.test_dual_rsa_ecc) ...  server:  new connection from ('127.0.0.1', 37506)
 server: connection cipher is now ('ECDHE-ECDSA-AES256-GCM-SHA384', 'TLSv1.2', 256)
ok
test_ecc_cert (test.test_ssl.ThreadedTests.test_ecc_cert) ...  server:  new connection from ('127.0.0.1', 60592)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_ecdh_curve (test.test_ssl.ThreadedTests.test_ecdh_curve) ...  server:  new connection from ('127.0.0.1', 49830)
 client:  sending b'FOO\n'...
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  closing connection.
 connection timeout TimeoutError('timed out')
 server:  new connection from ('127.0.0.1', 55542)
 client:  sending b'FOO\n'...
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  closing connection.
 connection timeout TimeoutError('timed out')
 server:  new connection from ('127.0.0.1', 59990)

 server:  bad connection attempt from ('127.0.0.1', 59990):
Traceback (most recent call last):
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ssl.py", line 2273, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
                                       ^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 455, in wrap_socket
    return self.sslsocket_class._create(
                                ^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 1041, in _create
    self.do_handshake()
         ^^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 1319, in do_handshake
    self._sslobj.do_handshake()
                 ^^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 550, in do_handshake
    raise pyssl_error(self, ret)
 ssl.SSLError: [SSL: NO_SUITABLE_KEY_SHARE] no suitable key share
 connection timeout TimeoutError('timed out')
ok
test_echo (test.test_ssl.ThreadedTests.test_echo)
Basic test of an SSL client connecting to a server ... skipped "resource 'walltime' is not enabled"
test_getpeercert (test.test_ssl.ThreadedTests.test_getpeercert) ... 
{'OCSP': ('http://testca.pythontest.net/testca/ocsp/',),
 'caIssuers': ('http://testca.pythontest.net/testca/pycacert.cer',),
 'crlDistributionPoints': ('http://testca.pythontest.net/testca/revocation.crl',),
 'issuer': ((('countryName', 'XY'),),
            (('organizationName', 'Python Software Foundation CA'),),
            (('commonName', 'our-ca-server'),)),
 'notAfter': 'Oct 28 14:23:16 2037 GMT',
 'notBefore': 'Aug 29 14:23:16 2018 GMT',
 'serialNumber': 'CB2D80995A69525C',
 'subject': ((('countryName', 'XY'),),
             (('localityName', 'Castle Anthrax'),),
             (('organizationName', 'Python Software Foundation'),),
             (('commonName', 'localhost'),)),
 'subjectAltName': (('DNS', 'localhost'),),
 'version': 3}
Connection cipher is ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256).
ok
test_getpeercert_enotconn (test.test_ssl.ThreadedTests.test_getpeercert_enotconn) ... ok
test_handshake_timeout (test.test_ssl.ThreadedTests.test_handshake_timeout) ... ok
test_hostname_checks_common_name (test.test_ssl.ThreadedTests.test_hostname_checks_common_name) ...  server:  new connection from ('127.0.0.1', 47698)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 43536)

 server:  bad connection attempt from ('127.0.0.1', 43536):
Traceback (most recent call last):
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ssl.py", line 2273, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
                                       ^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 455, in wrap_socket
    return self.sslsocket_class._create(
                                ^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 1041, in _create
    self.do_handshake()
         ^^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 1319, in do_handshake
    self._sslobj.do_handshake()
                 ^^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 550, in do_handshake
    raise pyssl_error(self, ret)
 ssl.SSLError: [SSL: SSLV3_ALERT_BAD_CERTIFICATE] ssl/tls alert bad certificate
 connection timeout TimeoutError('timed out')
ok
test_legacy_server_connect (test.test_ssl.ThreadedTests.test_legacy_server_connect) ...  server:  new connection from ('127.0.0.1', 44658)
 client:  sending b'FOO\n'...
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  closing connection.
 connection timeout TimeoutError('timed out')
ok
test_min_max_version_mismatch (test.test_ssl.ThreadedTests.test_min_max_version_mismatch) ... skipped 'TLSv1 is not available.'
test_min_max_version_sslv3 (test.test_ssl.ThreadedTests.test_min_max_version_sslv3) ... skipped 'SSLv3 is not available.'
test_min_max_version_tlsv1_1 (test.test_ssl.ThreadedTests.test_min_max_version_tlsv1_1) ... skipped 'TLSv1_1 is not available.'
test_min_max_version_tlsv1_2 (test.test_ssl.ThreadedTests.test_min_max_version_tlsv1_2) ... skipped 'TLSv1 is not available.'
test_no_legacy_server_connect (test.test_ssl.ThreadedTests.test_no_legacy_server_connect) ...  server:  new connection from ('127.0.0.1', 52716)
 client:  sending b'FOO\n'...
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  closing connection.
 connection timeout TimeoutError('timed out')
ok
test_no_shared_ciphers (test.test_ssl.ThreadedTests.test_no_shared_ciphers) ...  server:  new connection from ('127.0.0.1', 33930)

 server:  bad connection attempt from ('127.0.0.1', 33930):
Traceback (most recent call last):
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ssl.py", line 2273, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
                                       ^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 455, in wrap_socket
    return self.sslsocket_class._create(
                                ^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 1041, in _create
    self.do_handshake()
         ^^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 1319, in do_handshake
    self._sslobj.do_handshake()
                 ^^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 550, in do_handshake
    raise pyssl_error(self, ret)
 ssl.SSLError: [SSL: NO_SHARED_CIPHER] no shared cipher
ok
test_nonblocking_send (test.test_ssl.ThreadedTests.test_nonblocking_send) ...  server:  new connection from ('127.0.0.1', 41054)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
Test server failure:
Traceback (most recent call last):
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ssl.py", line 2427, in run
    self.write(msg.lower())
         ^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ssl.py", line 2340, in write
    return self.sslconn.write(bytes)
                        ^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 1122, in write
    return self._sslobj.write(data)
                        ^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 599, in write
    return self._write_with_length(_str_to_ffi_buffer(bytestring), len(bytestring))
                ^^^^^^^^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 652, in _write_with_length
    raise pyssl_error(self, retval)
 _cffi_ssl._stdssl.error.SSLEOFError: EOF occurred in violation of protocol
ok
test_npn_protocols (test.test_ssl.ThreadedTests.test_npn_protocols) ... ok
test_protocol_sslv3 (test.test_ssl.ThreadedTests.test_protocol_sslv3)
Connecting to an SSLv3 server with various client options ... skipped 'SSLv3 is not available.'
test_protocol_tlsv1 (test.test_ssl.ThreadedTests.test_protocol_tlsv1)
Connecting to a TLSv1 server with various client options ... skipped 'TLSv1 is not available.'
test_protocol_tlsv1_1 (test.test_ssl.ThreadedTests.test_protocol_tlsv1_1)
Connecting to a TLSv1.1 server with various client options. ... skipped 'TLSv1_1 is not available.'
test_protocol_tlsv1_2 (test.test_ssl.ThreadedTests.test_protocol_tlsv1_2)
Connecting to a TLSv1.2 server with various client options. ... 
 PROTOCOL_TLSv1_2->PROTOCOL_TLSv1_2 CERT_NONE
 connection timeout TimeoutError('timed out')
 {PROTOCOL_TLS->PROTOCOL_TLSv1_2} CERT_NONE
 connection timeout TimeoutError('timed out')
 PROTOCOL_TLSv1_2->PROTOCOL_TLS CERT_NONE
ok
test_read_write_after_close_raises_valuerror (test.test_ssl.ThreadedTests.test_read_write_after_close_raises_valuerror) ... ok
test_recv_into_buffer_protocol_len (test.test_ssl.ThreadedTests.test_recv_into_buffer_protocol_len) ...  server:  new connection from ('127.0.0.1', 60876)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_recv_send (test.test_ssl.ThreadedTests.test_recv_send)
Test recv(), send() and friends. ... 
 server:  new connection from ('127.0.0.1', 48332)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_recv_zero (test.test_ssl.ThreadedTests.test_recv_zero) ...  server:  new connection from ('127.0.0.1', 33368)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_rude_shutdown (test.test_ssl.ThreadedTests.test_rude_shutdown)
A brutal shutdown of an SSL server should raise an OSError ... ok
test_selected_alpn_protocol (test.test_ssl.ThreadedTests.test_selected_alpn_protocol) ...  server:  new connection from ('127.0.0.1', 51890)
 client:  sending b'FOO\n'...
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  closing connection.
 connection timeout TimeoutError('timed out')
ok
test_selected_alpn_protocol_if_server_uses_alpn (test.test_ssl.ThreadedTests.test_selected_alpn_protocol_if_server_uses_alpn) ...  server:  new connection from ('127.0.0.1', 42242)
 client:  sending b'FOO\n'...
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  closing connection.
 connection timeout TimeoutError('timed out')
ok
test_sendfile (test.test_ssl.ThreadedTests.test_sendfile) ... ok
test_server_accept (test.test_ssl.ThreadedTests.test_server_accept) ... ok
test_session (test.test_ssl.ThreadedTests.test_session) ...  server:  new connection from ('127.0.0.1', 44670)
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1.2', 256)
 connection timeout TimeoutError('timed out')
 server:  new connection from ('127.0.0.1', 45820)
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1.2', 256)
 connection timeout TimeoutError('timed out')
 server:  new connection from ('127.0.0.1', 49962)
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1.2', 256)
 connection timeout TimeoutError('timed out')
 server:  new connection from ('127.0.0.1', 37042)
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1.2', 256)
 connection timeout TimeoutError('timed out')
ok
test_session_handling (test.test_ssl.ThreadedTests.test_session_handling) ... ok
test_shared_ciphers (test.test_ssl.ThreadedTests.test_shared_ciphers) ...  server:  new connection from ('127.0.0.1', 60636)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 connection timeout TimeoutError('timed out')
ok
test_sni_callback (test.test_ssl.ThreadedTests.test_sni_callback) ...  server:  new connection from ('127.0.0.1', 36874)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 connection timeout TimeoutError('timed out')
 server:  new connection from ('127.0.0.1', 48250)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 connection timeout TimeoutError('timed out')
 server:  new connection from ('127.0.0.1', 55534)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 connection timeout TimeoutError('timed out')
ok
test_sni_callback_alert (test.test_ssl.ThreadedTests.test_sni_callback_alert) ...  connection timeout TimeoutError('timed out')
ok
test_sni_callback_raising (test.test_ssl.ThreadedTests.test_sni_callback_raising) ...  connection timeout TimeoutError('timed out')
ok
test_sni_callback_wrong_return_type (test.test_ssl.ThreadedTests.test_sni_callback_wrong_return_type) ...  connection timeout TimeoutError('timed out')
ok
test_socketserver (test.test_ssl.ThreadedTests.test_socketserver)
Using socketserver to create and manage SSL connections. ... 
 server (('127.0.0.1', 42749):42749 ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)):
   [06/Jul/2026 20:43:16] "GET /test_ssl.py HTTP/1.1" 200 -
 client: read 221713 bytes from remote server '<HTTPSServerThread <HTTPSServer localhost:42749>>'
stopping HTTPS server
joining HTTPS thread
ok
test_ssl_cert_verify_error (test.test_ssl.ThreadedTests.test_ssl_cert_verify_error) ... 
 server:  new connection from ('127.0.0.1', 35710)

 server:  bad connection attempt from ('127.0.0.1', 35710):
Traceback (most recent call last):
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ssl.py", line 2273, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
                                       ^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 455, in wrap_socket
    return self.sslsocket_class._create(
                                ^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 1041, in _create
    self.do_handshake()
         ^^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 1319, in do_handshake
    self._sslobj.do_handshake()
                 ^^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 550, in do_handshake
    raise pyssl_error(self, ret)
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca
 connection timeout TimeoutError('timed out')
ok
test_starttls (test.test_ssl.ThreadedTests.test_starttls)
Switching from clear text to encrypted and back again. ... 
 client:  sending b'msg 1'...
 server:  new connection from ('127.0.0.1', 50480)
 server: read b'msg 1' (unencrypted), sending back b'msg 1' (unencrypted)...
 client:  read b'msg 1' from server
 client:  sending b'MSG 2'...
 server: read b'MSG 2' (unencrypted), sending back b'msg 2' (unencrypted)...
 client:  read b'msg 2' from server
 client:  sending b'STARTTLS'...
 server: read STARTTLS from client, sending OK...
 client:  read b'ok' from server, starting TLS...
 client:  sending b'MSG 3'...
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server: read b'MSG 3' (encrypted), sending back b'msg 3' (encrypted)...
 client:  read b'msg 3' from server
 client:  sending b'msg 4'...
 server: read b'msg 4' (encrypted), sending back b'msg 4' (encrypted)...
 client:  read b'msg 4' from server
 client:  sending b'ENDTLS'...
 server: read ENDTLS from client, sending OK...
 client:  read b'ok' from server, ending TLS...
 client:  sending b'msg 5'...
 server: connection is now unencrypted...
 server: read b'msg 5' (unencrypted), sending back b'msg 5' (unencrypted)...
 client:  read b'msg 5' from server
 client:  sending b'msg 6'...
 server: read b'msg 6' (unencrypted), sending back b'msg 6' (unencrypted)...
 client:  read b'msg 6' from server
 client:  closing connection.
 server: client closed connection
ok
test_tls1_3 (test.test_ssl.ThreadedTests.test_tls1_3) ...  server:  new connection from ('127.0.0.1', 54256)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_tls_unique_channel_binding (test.test_ssl.ThreadedTests.test_tls_unique_channel_binding)
Test tls-unique channel binding. ... 
 server:  new connection from ('127.0.0.1', 55602)
 got channel binding data: b'^g\xf0\xd6Zrm\xa7\x8a\xc8\x18\xa5'
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1.2', 256)
 server:  new connection from ('127.0.0.1', 55604)
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1.2', 256)
got another channel binding data: b"i~\x84\x83l'\xbb\xaa`\x9e\xee\xf6"
ok
test_version_basic (test.test_ssl.ThreadedTests.test_version_basic)
Basic tests for SSLSocket.version(). ... ok
test_wrong_cert_tls12 (test.test_ssl.ThreadedTests.test_wrong_cert_tls12)
Connecting when the server rejects the client's certificate ...  server:  new connection from ('127.0.0.1', 54438)

SSLError is SSLError(1, '[SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca')

 server:  bad connection attempt from ('127.0.0.1', 54438):
Traceback (most recent call last):
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ssl.py", line 2273, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
                                       ^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 455, in wrap_socket
    return self.sslsocket_class._create(
                                ^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 1041, in _create
    self.do_handshake()
         ^^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 1319, in do_handshake
    self._sslobj.do_handshake()
                 ^^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 550, in do_handshake
    raise pyssl_error(self, ret)
 _cffi_ssl._stdssl.error.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate
ok
test_wrong_cert_tls13 (test.test_ssl.ThreadedTests.test_wrong_cert_tls13) ...  server:  new connection from ('127.0.0.1', 37060)

 server:  bad connection attempt from ('127.0.0.1', 37060):
Traceback (most recent call last):
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ssl.py", line 2273, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
                                       ^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 455, in wrap_socket
    return self.sslsocket_class._create(
                                ^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 1041, in _create
    self.do_handshake()
         ^^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ssl.py", line 1319, in do_handshake
    self._sslobj.do_handshake()
                 ^^^^^^^^^^^^
   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 550, in do_handshake
    raise pyssl_error(self, ret)
 _cffi_ssl._stdssl.error.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate
ok

======================================================================
ERROR: test_ssl_types (test.test_ssl.BasicSocketTests.test_ssl_types)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ssl.py", line 359, in test_ssl_types
    _ssl._SSLSocket,
         ^^^^^^^^^^
AttributeError: module '_ssl' has no attribute '_SSLSocket'

======================================================================
FAIL: test_str_for_enums (test.test_ssl.BasicSocketTests.test_str_for_enums)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ssl.py", line 380, in test_str_for_enums
    self.assertEqual(repr(proto), '<_SSLMethod.PROTOCOL_TLS_CLIENT: %r>' % proto.value)
         ^^^^^^^^^^^
AssertionError: '<_SSLMethod.PROTOCOL_TLS_CLIENT: 16>' != '<_SSLMethod.PROTOCOL_TLS_CLIENT: <_SSLMethod.PROTOCOL_TLS_CLIENT: 16>>'
- <_SSLMethod.PROTOCOL_TLS_CLIENT: 16>
+ <_SSLMethod.PROTOCOL_TLS_CLIENT: <_SSLMethod.PROTOCOL_TLS_CLIENT: 16>>


======================================================================
FAIL: test_load_verify_cadata (test.test_ssl.ContextTests.test_load_verify_cadata)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ssl.py", line 1327, in test_load_verify_cadata
    with self.assertRaises(ssl.SSLError):
AssertionError: SSLError not raised

----------------------------------------------------------------------
Ran 183 tests in 46.457s

FAILED (failures=2, errors=1, skipped=18)
0:00:46 load avg: 0.26 [1/1/1] test_ssl failed (1 error, 2 failures) in 46.7 sec

== Tests result: FAILURE ==

1 test failed:
    test_ssl

Total duration: 46.7 sec
Total tests: run=183 failures=2 skipped=18
Total test files: run=1/1 failed=1
Result: FAILURE
test test_ssl failed
builder: pypy-c-jit-linux-x86-64 build #11848+
test: lib-python/3/test/test_ssl.py::unmodified