[Python-modules-commits] [pyopenssl] 02/07: disable test_set_default_verify_paths since it tries to access the web

Sandro Tosi morph at moszumanska.debian.org
Wed Nov 9 19:24:51 UTC 2016


This is an automated email from the git hooks/post-receive script.

morph pushed a commit to branch master
in repository pyopenssl.

commit b9227a312f9d70853fa42af49d920a9099df68aa
Author: SVN-Git Migration <python-modules-team at lists.alioth.debian.org>
Date:   Thu Oct 8 10:47:52 2015 -0700

    disable test_set_default_verify_paths since it tries to access the web
---
 tests/test_ssl.py | 28 +++++++++++++++-------------
 1 file changed, 15 insertions(+), 13 deletions(-)

diff --git a/tests/test_ssl.py b/tests/test_ssl.py
index 2b7e276..31738d9 100644
--- a/tests/test_ssl.py
+++ b/tests/test_ssl.py
@@ -1182,6 +1182,7 @@ class ContextTests(TestCase, _LoopbackMixin):
         platform == "win32",
         reason="set_default_verify_paths appears not to work on Windows.  "
         "See LP#404343 and LP#404344."
+
     )
     def test_set_default_verify_paths(self):
         """
@@ -1196,21 +1197,22 @@ class ContextTests(TestCase, _LoopbackMixin):
         # internet which has such a certificate.  Connecting to the network
         # in a unit test is bad, but it's the only way I can think of to
         # really test this. -exarkun
+        pass
 
         # Arg, verisign.com doesn't speak anything newer than TLS 1.0
-        context = Context(SSLv23_METHOD)
-        context.set_default_verify_paths()
-        context.set_verify(
-            VERIFY_PEER,
-            lambda conn, cert, errno, depth, preverify_ok: preverify_ok)
-
-        client = socket()
-        client.connect(("encrypted.google.com", 443))
-        clientSSL = Connection(context, client)
-        clientSSL.set_connect_state()
-        clientSSL.do_handshake()
-        clientSSL.send(b"GET / HTTP/1.0\r\n\r\n")
-        self.assertTrue(clientSSL.recv(1024))
+        #context = Context(SSLv23_METHOD)
+        #context.set_default_verify_paths()
+        #context.set_verify(
+        #    VERIFY_PEER,
+        #    lambda conn, cert, errno, depth, preverify_ok: preverify_ok)
+
+        #client = socket()
+        #client.connect(("encrypted.google.com", 443))
+        #clientSSL = Connection(context, client)
+        #clientSSL.set_connect_state()
+        #clientSSL.do_handshake()
+        #clientSSL.send(b"GET / HTTP/1.0\r\n\r\n")
+        #self.assertTrue(clientSSL.recv(1024))
 
     def test_set_default_verify_paths_signature(self):
         """

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pyopenssl.git



More information about the Python-modules-commits mailing list