File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -448,12 +448,13 @@ def test_tls_version(version):
448448 test_tls_version (ssl .TLSVersion .TLSv1_3 )
449449 test_tls_version (ssl .TLSVersion .TLSv1_2 )
450450
451- # Anything below TLS 1.2 is not allowed.
451+ # Anything below TLS 1.2 is not allowed - the error can
452+ # differ slightly depending on the OpenSSL version.
452453 self .assertRaisesRegex (ssl .SSLError ,
453- r"NO_PROTOCOLS_AVAILABLE" ,
454+ r"NO_PROTOCOLS_AVAILABLE|NO_CIPHERS_AVAILABLE " ,
454455 test_tls_version , ssl .TLSVersion .TLSv1_1 )
455456 self .assertRaisesRegex (ssl .SSLError ,
456- r"NO_PROTOCOLS_AVAILABLE" ,
457+ r"NO_PROTOCOLS_AVAILABLE|NO_CIPHERS_AVAILABLE " ,
457458 test_tls_version , ssl .TLSVersion .TLSv1 )
458459 self .assertRaisesRegex (ssl .SSLError ,
459460 r"NO_PROTOCOLS_AVAILABLE" ,
You can’t perform that action at this time.
0 commit comments