summaryrefslogtreecommitdiff
path: root/tests/stdlib/test_socket_ssl.py
diff options
context:
space:
mode:
authorRyan Williams <rdw@lindenlab.com>2009-11-30 01:57:55 -0500
committerRyan Williams <rdw@lindenlab.com>2009-11-30 01:57:55 -0500
commite49fa06db612558af69b84d54fd4d357d4a746b7 (patch)
treeb83d47f9e91577c6c9639b3691d5994cd57479b0 /tests/stdlib/test_socket_ssl.py
parent1cedca5f141ae268ceff3ee79fb9fb473b62b76b (diff)
downloadeventlet-e49fa06db612558af69b84d54fd4d357d4a746b7.tar.gz
Fleshed out the rest of eventlet.green.thread, tweaked all.py so it discerns which tests will run when the frikkin internet is down, and used the improved corolocal that Tyler and I worked on (and fixed some bugs with it that these tests revealed.
Diffstat (limited to 'tests/stdlib/test_socket_ssl.py')
-rw-r--r--tests/stdlib/test_socket_ssl.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/stdlib/test_socket_ssl.py b/tests/stdlib/test_socket_ssl.py
index 55cea01..d7fb21d 100644
--- a/tests/stdlib/test_socket_ssl.py
+++ b/tests/stdlib/test_socket_ssl.py
@@ -5,6 +5,12 @@ from eventlet.green import socket
from eventlet.green import urllib
from eventlet.green import threading
+try:
+ socket.ssl
+ socket.sslerror
+except AttributeError:
+ raise ImportError("Socket module doesn't support ssl")
+
patcher.inject('test.test_socket_ssl',
globals(),
('socket', socket),