[Python-checkins] r65070 - python/trunk/Lib/test/test_ssl.py

bill.janssen python-checkins at python.org
Thu Jul 17 20:01:58 CEST 2008


Author: bill.janssen
Date: Thu Jul 17 20:01:57 2008
New Revision: 65070

Log:
catch socket.error errors in badCertTest

Modified:
   python/trunk/Lib/test/test_ssl.py

Modified: python/trunk/Lib/test/test_ssl.py
==============================================================================
--- python/trunk/Lib/test/test_ssl.py	(original)
+++ python/trunk/Lib/test/test_ssl.py	Thu Jul 17 20:01:57 2008
@@ -598,6 +598,9 @@
             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!")


More information about the Python-checkins mailing list