Issue #12049: test_ssl now checks also that RAND_bytes() raises an error if
there is not enough entropy.
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index 8c21975..5193c15 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -109,6 +109,8 @@
         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)