[Python-checkins] r86533 - python/branches/py3k/Lib/test/test_xmlrpc.py

antoine.pitrou python-checkins at python.org
Fri Nov 19 21:07:58 CET 2010


Author: antoine.pitrou
Date: Fri Nov 19 21:07:52 2010
New Revision: 86533

Log:
Fix test_ssl_presence when ssl is not present



Modified:
   python/branches/py3k/Lib/test/test_xmlrpc.py

Modified: python/branches/py3k/Lib/test/test_xmlrpc.py
==============================================================================
--- python/branches/py3k/Lib/test/test_xmlrpc.py	(original)
+++ python/branches/py3k/Lib/test/test_xmlrpc.py	Fri Nov 19 21:07:52 2010
@@ -152,8 +152,8 @@
     def test_ssl_presence(self):
         try:
             import ssl
-        except:
-            have_ssl = False
+        except ImportError:
+            has_ssl = False
         else:
             has_ssl = True
         try:


More information about the Python-checkins mailing list