[Python-modules-commits] [pyopenssl] 03/18: disable test_set_default_verify_paths since it tries to access the web
Sandro Tosi
morph at moszumanska.debian.org
Wed Dec 13 04:58:10 UTC 2017
This is an automated email from the git hooks/post-receive script.
morph pushed a commit to branch master
in repository pyopenssl.
commit d576c2a816de6adbfa4c3544aafb93b8c1468e7b
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, 16 insertions(+), 12 deletions(-)
diff --git a/tests/test_ssl.py b/tests/test_ssl.py
index 03dd935..a95a898 100644
--- a/tests/test_ssl.py
+++ b/tests/test_ssl.py
@@ -1183,6 +1183,7 @@ class TestContext(object):
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,19 +1197,22 @@ class TestContext(object):
# 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
- context = Context(SSLv23_METHOD)
- context.set_default_verify_paths()
- context.set_verify(
- VERIFY_PEER,
- lambda conn, cert, errno, depth, preverify_ok: preverify_ok)
+ pass
+
+ #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")
+ #assert clientSSL.recv(1024)
- 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")
- assert clientSSL.recv(1024)
def test_fallback_path_is_not_file_or_dir(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