From: Antoine Pitrou Date: Fri, 19 Nov 2010 20:07:52 +0000 (+0000) Subject: Fix test_ssl_presence when ssl is not present X-Git-Tag: v3.2b1~332 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=98b644ff3f8e25b965ff560ea2fb61c23e00941a;p=python Fix test_ssl_presence when ssl is not present --- diff --git a/Lib/test/test_xmlrpc.py b/Lib/test/test_xmlrpc.py index 84e369b8d3..6fe8224c72 100644 --- a/Lib/test/test_xmlrpc.py +++ b/Lib/test/test_xmlrpc.py @@ -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: