diff options
Diffstat (limited to 'Lib/test/test_socket_ssl.py')
-rw-r--r-- | Lib/test/test_socket_ssl.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/Lib/test/test_socket_ssl.py b/Lib/test/test_socket_ssl.py index 334cbdf..9cf9cfe 100644 --- a/Lib/test/test_socket_ssl.py +++ b/Lib/test/test_socket_ssl.py @@ -13,4 +13,18 @@ if not hasattr(socket, "ssl"): 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() + + + |