diff options
author | Bill Janssen <janssen@parc.com> | 2008-07-17 18:01:57 +0000 |
---|---|---|
committer | Bill Janssen <janssen@parc.com> | 2008-07-17 18:01:57 +0000 |
commit | 0c1dbf8792cd1d4a8f97070852a16f4afcd7f466 (patch) | |
tree | 1071c38749f12243ef74d0e364958349631a9b76 | |
parent | 454816d8bdd6ec9bb986aa31760518e622dc1ea7 (diff) | |
download | cpython-git-0c1dbf8792cd1d4a8f97070852a16f4afcd7f466.tar.gz |
catch socket.error errors in badCertTest
-rw-r--r-- | Lib/test/test_ssl.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index b05b17eece..79dad649ce 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -598,6 +598,9 @@ else: except ssl.SSLError, x: if test_support.verbose: sys.stdout.write("\nSSLError is %s\n" % x[1]) + except socket.error, x: + if test_support.verbose: + sys.stdout.write("\nsocket.error is %s\n" % x[1]) else: raise test_support.TestFailed( "Use of invalid cert should have failed!") |