]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
catch socket.error errors in badCertTest
authorBill Janssen <janssen@parc.com>
Thu, 17 Jul 2008 18:01:57 +0000 (18:01 +0000)
committerBill Janssen <janssen@parc.com>
Thu, 17 Jul 2008 18:01:57 +0000 (18:01 +0000)
Lib/test/test_ssl.py

index b05b17eece4b81bbed26b3ab5e554e40f929963b..79dad649ce668358a970e93430940c63d77285b7 100644 (file)
@@ -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!")