Commit 1787a0b1 authored by Neal Norwitz's avatar Neal Norwitz

Fix SF bug #763770, test_socket_ssl crash

Don't run any tests if there is no ssl support.
parent 9c8f78de
......@@ -11,8 +11,6 @@ skip_expected = not (test_support.is_resource_enabled('network') and
def test_basic():
test_support.requires('network')
if not hasattr(socket, "ssl"):
raise test_support.TestSkipped("socket module has no ssl support")
import urllib
......@@ -61,6 +59,8 @@ def test_rude_shutdown():
connector()
def test_main():
if not hasattr(socket, "ssl"):
raise test_support.TestSkipped("socket module has no ssl support")
test_rude_shutdown()
test_basic()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment