summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2003-07-01 13:44:28 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2003-07-01 13:44:28 (GMT)
commit1787a0b1cc9679791a2fe775f63c322491c6767a (patch)
treed7a884a525793617a912e86a81b3c5dcb53fa021 /Lib
parent9c8f78deab036f64b997ccdd29573205c6bed0e2 (diff)
downloadcpython-1787a0b1cc9679791a2fe775f63c322491c6767a.zip
cpython-1787a0b1cc9679791a2fe775f63c322491c6767a.tar.gz
cpython-1787a0b1cc9679791a2fe775f63c322491c6767a.tar.bz2
Fix SF bug #763770, test_socket_ssl crash
Don't run any tests if there is no ssl support.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_socket_ssl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_socket_ssl.py b/Lib/test/test_socket_ssl.py
index ccb8318..544cdd9 100644
--- a/Lib/test/test_socket_ssl.py
+++ b/Lib/test/test_socket_ssl.py
@@ -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()