diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-11-19 20:07:52 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-11-19 20:07:52 (GMT) |
commit | 98b644ff3f8e25b965ff560ea2fb61c23e00941a (patch) | |
tree | ce7db1caaa11a0517db777485db5c33be10411cd /Lib | |
parent | 93a6b13f966aeeaef7d41396a370ae4125fbd753 (diff) | |
download | cpython-98b644ff3f8e25b965ff560ea2fb61c23e00941a.zip cpython-98b644ff3f8e25b965ff560ea2fb61c23e00941a.tar.gz cpython-98b644ff3f8e25b965ff560ea2fb61c23e00941a.tar.bz2 |
Fix test_ssl_presence when ssl is not present
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_xmlrpc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_xmlrpc.py b/Lib/test/test_xmlrpc.py index 84e369b..6fe8224 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: |