Index: Lib/test/test_socket_ssl.py =================================================================== --- Lib/test/test_socket_ssl.py (revision 47045) +++ Lib/test/test_socket_ssl.py (working copy) @@ -3,6 +3,7 @@ import sys from test import test_support import socket +import errno # Optionally test SSL support. This requires the 'network' resource as given # on the regrtest command line. @@ -54,6 +55,12 @@ for. If this message is seen often, test_timeout should be changed to use a more reliable address.""" % (ADDR,) return + except socket.err, exc: # In case connection is refused. + if (isinstance(exc.message, tuple) and + exc.message[0] == errno.ECONNREFUSED): + return + else: + raise exc ss = socket.ssl(s) # Read part of return welcome banner twice.

AltStyle によって変換されたページ (->オリジナル) /