Issue #12049: test_ssl now checks also that RAND_bytes() raises an error if
there is not enough entropy.
This commit is contained in:
parent
c13ef66649
commit
2e2baa9208
|
@ -109,6 +109,8 @@ class BasicSocketTests(unittest.TestCase):
|
|||
if v:
|
||||
data = ssl.RAND_bytes(16)
|
||||
self.assertEqual(len(data), 16)
|
||||
else:
|
||||
self.assertRaises(ssl.SSLError, ssl.RAND_bytes, 16)
|
||||
|
||||
try:
|
||||
ssl.RAND_egd(1)
|
||||
|
|
Loading…
Reference in New Issue