Skip to content

Commit e46a672

Browse files
committed
test: require OpenSSL 3+ for test_verify_strict
1 parent ff087fb commit e46a672

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_ssl.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2956,6 +2956,8 @@ def test_ecc_cert(self):
29562956
cipher = s.cipher()[0].split('-')
29572957
self.assertTrue(cipher[:2], ('ECDHE', 'ECDSA'))
29582958

2959+
@unittest.skipUnless(IS_OPENSSL_3_0_0,
2960+
"test requires RFC 5280 check added in OpenSSL 3.0+")
29592961
def test_verify_strict(self):
29602962
# verification fails by default, since the server cert is non-conforming
29612963
client_context = ssl.create_default_context()

0 commit comments

Comments
 (0)