summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-08-29 03:59:57 (GMT)
committerGuido van Rossum <guido@python.org>2007-08-29 03:59:57 (GMT)
commit245b42ec4b07682dd44bb92dbde328c7ce78d90b (patch)
tree46f363979deeda4c8c89bc89b98e155089e4b256
parent1b81e7bea562b6fc9df0a9e99f51b2b4c351ec34 (diff)
downloadcpython-245b42ec4b07682dd44bb92dbde328c7ce78d90b.zip
cpython-245b42ec4b07682dd44bb92dbde328c7ce78d90b.tar.gz
cpython-245b42ec4b07682dd44bb92dbde328c7ce78d90b.tar.bz2
Found a different, more direct way to disable ssl support until it's fixed.
-rw-r--r--Lib/socket.py12
-rw-r--r--Lib/ssl.py2
-rw-r--r--Lib/test/test_socket_ssl.py2
-rw-r--r--Lib/test/test_ssl.py2
4 files changed, 8 insertions, 10 deletions
diff --git a/Lib/socket.py b/Lib/socket.py
index fca44ea..fb96637 100644
--- a/Lib/socket.py
+++ b/Lib/socket.py
@@ -47,12 +47,12 @@ import _socket
from _socket import *
_have_ssl = False
-try:
- import _ssl
- from _ssl import *
- _have_ssl = True
-except ImportError:
- pass
+## try:
+## import _ssl
+## from _ssl import *
+## _have_ssl = True
+## except ImportError:
+## pass
import os, sys, io
diff --git a/Lib/ssl.py b/Lib/ssl.py
index 99f6257..77a2ceb 100644
--- a/Lib/ssl.py
+++ b/Lib/ssl.py
@@ -1,6 +1,8 @@
# Wrapper module for _ssl, providing some additional facilities
# implemented in Python. Written by Bill Janssen.
+raise ImportError("ssl.py is temporarily out of order")
+
"""\
This module provides some more Pythonic support for SSL.
diff --git a/Lib/test/test_socket_ssl.py b/Lib/test/test_socket_ssl.py
index a003038..fd4383f 100644
--- a/Lib/test/test_socket_ssl.py
+++ b/Lib/test/test_socket_ssl.py
@@ -210,8 +210,6 @@ def test_main():
if not hasattr(socket, "ssl"):
raise test_support.TestSkipped("socket module has no ssl support")
- raise test_support.TestSkipped("Disabling this until ssl.py is fixed")
-
tests = [BasicTests]
if test_support.is_resource_enabled('network'):
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index de57728..35c6af9 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -338,8 +338,6 @@ def test_main(verbose=False):
if skip_expected:
raise test_support.TestSkipped("socket module has no ssl support")
- raise test_support.TestSkipped("Disabling this until ssl.py is fixed")
-
global CERTFILE
CERTFILE = os.path.join(os.path.dirname(__file__) or os.curdir,
"keycert.pem")