diff --git a/Lib/test/test_xmlrpc.py b/Lib/test/test_xmlrpc.py index 7236947f580..c8649407d7d 100644 --- a/Lib/test/test_xmlrpc.py +++ b/Lib/test/test_xmlrpc.py @@ -146,8 +146,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: