summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_xmlrpc.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-11-19 20:07:52 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-11-19 20:07:52 (GMT)
commit98b644ff3f8e25b965ff560ea2fb61c23e00941a (patch)
treece7db1caaa11a0517db777485db5c33be10411cd /Lib/test/test_xmlrpc.py
parent93a6b13f966aeeaef7d41396a370ae4125fbd753 (diff)
downloadcpython-98b644ff3f8e25b965ff560ea2fb61c23e00941a.zip
cpython-98b644ff3f8e25b965ff560ea2fb61c23e00941a.tar.gz
cpython-98b644ff3f8e25b965ff560ea2fb61c23e00941a.tar.bz2
Fix test_ssl_presence when ssl is not present
Diffstat (limited to 'Lib/test/test_xmlrpc.py')
-rw-r--r--Lib/test/test_xmlrpc.py4
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: