Bug Reporter <bugs...@gmail.com> added the comment:
On my system, it still fails. Here is the content of modified Lib/test/test_ssl.py: 3827 @requires_minimum_version 3828 @requires_tls_version('TLSv1_2') 3829 @requires_tls_version('TLSv1') 3830 def test_min_max_version_mismatch(self): 3831 client_context, server_context, hostname = testing_context() 3832 # client 1.0, server 1.2 (mismatch) 3833 server_context.maximum_version = ssl.TLSVersion.TLSv1_2 3834 server_context.minimum_version = ssl.TLSVersion.TLSv1_2 3835 client_context.maximum_version = ssl.TLSVersion.TLSv1 3836 client_context.minimum_version = ssl.TLSVersion.TLSv1 3837 with ThreadedEchoServer(context=server_context) as server: 3838 with client_context.wrap_socket(socket.socket(), 3839 server_hostname=hostname) as s: 3840 with self.assertRaises(ssl.SSLError) as e: 3841 s.connect((HOST, server.port)) 3842 self.assertIn("alert", str(e.exception)) 3843 3844 @requires_minimum_version 3845 @requires_tls_version('SSLv3') ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41561> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com