Fix SF bug #763770, test_socket_ssl crash

Don't run any tests if there is no ssl support.
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 @@
 
 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 @@
     connector()
 
 def test_main():
+    if not hasattr(socket, "ssl"):
+        raise test_support.TestSkipped("socket module has no ssl support")
     test_rude_shutdown()
     test_basic()