mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
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.)
This commit is contained in:
parent
de80f2efb5
commit
9f6c37df26
1 changed files with 15 additions and 1 deletions
|
|
@ -13,4 +13,18 @@
|
||||||
|
|
||||||
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()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue