summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_socket_ssl.py
diff options
context:
space:
mode:
authorBill Janssen <janssen@parc.com>2007-08-29 22:35:05 (GMT)
committerBill Janssen <janssen@parc.com>2007-08-29 22:35:05 (GMT)
commit426ea0a8640b2905ba0c0833ff797241dd5b819d (patch)
tree884d69dd7a747da0a144dba46d8dfa8fd1a90fa7 /Lib/test/test_socket_ssl.py
parent492e5920bc8a6d07be7f9b251bdc2482f043e48d (diff)
downloadcpython-426ea0a8640b2905ba0c0833ff797241dd5b819d.zip
cpython-426ea0a8640b2905ba0c0833ff797241dd5b819d.tar.gz
cpython-426ea0a8640b2905ba0c0833ff797241dd5b819d.tar.bz2
This contains a number of things:
1) Improve the documentation of the SSL module, with a fuller explanation of certificate usage, another reference, proper formatting of this and that. 2) Fix Windows bug in ssl.py, and general bug in sslsocket.close(). Remove some unused code from ssl.py. Allow accept() to be called on sslsocket sockets. 3) Use try-except-else in import of ssl in socket.py. Deprecate use of socket.ssl(). 4) Remove use of socket.ssl() in every library module, except for test_socket_ssl.py and test_ssl.py.
Diffstat (limited to 'Lib/test/test_socket_ssl.py')
-rw-r--r--Lib/test/test_socket_ssl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_socket_ssl.py b/Lib/test/test_socket_ssl.py
index e08ec44..f7c1aa1 100644
--- a/Lib/test/test_socket_ssl.py
+++ b/Lib/test/test_socket_ssl.py
@@ -110,12 +110,12 @@ class BasicTests(unittest.TestCase):
if test_support.verbose:
print "test_978833 ..."
- import os, httplib
+ import os, httplib, ssl
with test_support.transient_internet():
s = socket.socket(socket.AF_INET)
s.connect(("www.sf.net", 443))
fd = s._sock.fileno()
- sock = httplib.FakeSocket(s, socket.ssl(s))
+ sock = ssl.sslsocket(s)
s = None
sock.close()
try: