Kaydet (Commit) 2e2baa92 authored tarafından Victor Stinner's avatar Victor Stinner

Issue #12049: test_ssl now checks also that RAND_bytes() raises an error if

there is not enough entropy.
üst c13ef666
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment