mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Skip instead of fail this test if the socket module has no ssl
support.
This commit is contained in:
parent
cb227c9850
commit
7b219b4a92
1 changed files with 3 additions and 0 deletions
|
@ -8,6 +8,9 @@ import test_support
|
|||
test_support.requires('network')
|
||||
|
||||
import socket
|
||||
if not hasattr(socket, "ssl"):
|
||||
raise test_support.TestSkipped("socket module has no ssl support")
|
||||
|
||||
import urllib
|
||||
|
||||
urllib.urlopen('https://sf.net')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue