]> granicus.if.org Git - python/commitdiff
Fix test_ssl_presence when ssl is not present
authorAntoine Pitrou <solipsis@pitrou.net>
Fri, 19 Nov 2010 20:07:52 +0000 (20:07 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Fri, 19 Nov 2010 20:07:52 +0000 (20:07 +0000)
Lib/test/test_xmlrpc.py

index 84e369b8d37636451dd5417069cc777e42df2e2c..6fe8224c72d3013bff5cb8d58ec7d8eb383a6f8d 100644 (file)
@@ -152,8 +152,8 @@ class XMLRPCTestCase(unittest.TestCase):
     def test_ssl_presence(self):
         try:
             import ssl
-        except:
-            have_ssl = False
+        except ImportError:
+            has_ssl = False
         else:
             has_ssl = True
         try: