merge heads
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index ba1d868..07f9c86 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -981,6 +981,8 @@
         @skip_if_broken_ubuntu_ssl
         def test_protocol_sslv2(self):
             """Connecting to an SSLv2 server with various client options"""
+            if not hasattr(ssl, 'PROTOCOL_SSLv2'):
+                raise unittest.SkipTest('No SSLv2 available')
             if test_support.verbose:
                 sys.stdout.write("\n")
             if not hasattr(ssl, 'PROTOCOL_SSLv2'):