Kaydet (Commit) 9f6c37df authored tarafından Jeremy Hylton's avatar Jeremy Hylton

Add trivial test cases for RAND_add() and RAND_status().

(The rest of the test cases are trivial, so I don't feel too bad.)
üst de80f2ef
...@@ -13,4 +13,18 @@ if not hasattr(socket, "ssl"): ...@@ -13,4 +13,18 @@ if not hasattr(socket, "ssl"):
import urllib import urllib
urllib.urlopen('https://sf.net') socket.RAND_status()
try:
socket.RAND_egd(1)
except TypeError:
pass
else:
print "didn't raise TypeError"
socket.RAND_add("this is a random string", 75.0)
f = urllib.urlopen('https://sf.net')
buf = f.read()
f.close()
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