diff options
author | Jesus Cea <jcea@jcea.es> | 2012-09-11 00:08:48 (GMT) |
---|---|---|
committer | Jesus Cea <jcea@jcea.es> | 2012-09-11 00:08:48 (GMT) |
commit | b7a28008313f793897cc733e30c319ec2c284dbe (patch) | |
tree | a8f51234e96cbcabadfabef6442346b947f024ba /Lib | |
parent | 67bd81b8671e98149dcb3207e774e7abfd6159f2 (diff) | |
parent | c8754a13e607ebc70f12a10297c76dc574a91d5b (diff) | |
download | cpython-b7a28008313f793897cc733e30c319ec2c284dbe.zip cpython-b7a28008313f793897cc733e30c319ec2c284dbe.tar.gz cpython-b7a28008313f793897cc733e30c319ec2c284dbe.tar.bz2 |
MERGE: Closes #15793: Stack corruption in ssl.RAND_egd()
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_ssl.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 51762cf..4ce98b6 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -125,12 +125,8 @@ class BasicSocketTests(unittest.TestCase): else: self.assertRaises(ssl.SSLError, ssl.RAND_bytes, 16) - try: - ssl.RAND_egd(1) - except TypeError: - pass - else: - print("didn't raise TypeError") + self.assertRaises(TypeError, ssl.RAND_egd, 1) + self.assertRaises(TypeError, ssl.RAND_egd, 'foo', 1) ssl.RAND_add("this is a random string", 75.0) def test_parse_cert(self): |