(self)
| 2424 | self.ssl_io_loop(sock, incoming, outgoing, sslobj.unwrap) |
| 2425 | |
| 2426 | def test_transport_eof(self): |
| 2427 | client_context, server_context, hostname = testing_context() |
| 2428 | with socket.socket(socket.AF_INET) as sock: |
| 2429 | sock.connect(self.server_addr) |
| 2430 | incoming = ssl.MemoryBIO() |
| 2431 | outgoing = ssl.MemoryBIO() |
| 2432 | sslobj = client_context.wrap_bio(incoming, outgoing, |
| 2433 | server_hostname=hostname) |
| 2434 | self.ssl_io_loop(sock, incoming, outgoing, sslobj.do_handshake) |
| 2435 | |
| 2436 | # Simulate EOF from the transport. |
| 2437 | incoming.write_eof() |
| 2438 | self.assertRaises(ssl.SSLEOFError, sslobj.read) |
| 2439 | |
| 2440 | |
| 2441 | @unittest.skipUnless(has_tls_version('TLSv1_3'), "TLS 1.3 is not available") |
nothing calls this directly
no test coverage detected