mirror of https://github.com/python/cpython
Fix test_ssl_presence when ssl is not present
This commit is contained in:
parent
93a6b13f96
commit
98b644ff3f
|
@ -152,8 +152,8 @@ class XMLRPCTestCase(unittest.TestCase):
|
||||||
def test_ssl_presence(self):
|
def test_ssl_presence(self):
|
||||||
try:
|
try:
|
||||||
import ssl
|
import ssl
|
||||||
except:
|
except ImportError:
|
||||||
have_ssl = False
|
has_ssl = False
|
||||||
else:
|
else:
|
||||||
has_ssl = True
|
has_ssl = True
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue