[Python-checkins] cpython: Issue #12049: test_ssl now checks also that RAND_bytes() raises an error if
victor.stinner
python-checkins at python.org
Wed May 25 11:15:20 CEST 2011
http://hg.python.org/cpython/rev/96a82c973224
changeset: 70369:96a82c973224
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Wed May 25 11:15:16 2011 +0200
summary:
Issue #12049: test_ssl now checks also that RAND_bytes() raises an error if
there is not enough entropy.
files:
Lib/test/test_ssl.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
--- 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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list