mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Fix test_ssl_presence when ssl is not present
This commit is contained in:
parent
93a6b13f96
commit
98b644ff3f
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue