Skip to content

Commit af8ac2e

Browse files
committed
test_constants(): check that HAS_TLSv1_2 is a bool
1 parent 14fcf0d commit af8ac2e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_ssl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ def test_constants(self):
395395
ssl.OP_NO_COMPRESSION
396396
self.assertEqual(ssl.HAS_SNI, True)
397397
self.assertEqual(ssl.HAS_ECDH, True)
398-
ssl.HAS_TLSv1_2
398+
self.assertIsInstance(ssl.HAS_TLSv1_2, bool)
399399
self.assertEqual(ssl.HAS_TLSv1_3, True)
400400
ssl.OP_NO_SSLv2
401401
ssl.OP_NO_SSLv3

0 commit comments

Comments
 (0)