[Python-modules-commits] [pyopenssl] 03/09: disable test_set_default_verify_paths since it tries to access the web
Sandro Tosi
morph at moszumanska.debian.org
Sat Sep 3 18:21:29 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 2fdf36ad41dc89a7edf95f21413bd3d7a19635c7
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 eb000aa..b8a499d 100644
--- a/tests/test_ssl.py
+++ b/tests/test_ssl.py
@@ -1175,6 +1175,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):
"""
@@ -1189,21 +1190,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