[Python-modules-commits] r18165 - in packages/pyopenssl/trunk/debian (3 files)
morph at users.alioth.debian.org
morph at users.alioth.debian.org
Mon Aug 15 16:28:51 UTC 2011
Date: Monday, August 15, 2011 @ 16:28:49
Author: morph
Revision: 18165
* debian/patches/disable_test_set_default_verify_paths.patch
- disable a test trying to connect to the web
Added:
packages/pyopenssl/trunk/debian/patches/disable_test_set_default_verify_paths.patch
Modified:
packages/pyopenssl/trunk/debian/changelog
packages/pyopenssl/trunk/debian/patches/series
Modified: packages/pyopenssl/trunk/debian/changelog
===================================================================
--- packages/pyopenssl/trunk/debian/changelog 2011-08-15 16:11:49 UTC (rev 18164)
+++ packages/pyopenssl/trunk/debian/changelog 2011-08-15 16:28:49 UTC (rev 18165)
@@ -3,8 +3,10 @@
* New upstream (alpha) release
* debian/patches/support_openssl_1.0
- removed, fix upstream
+ * debian/patches/disable_test_set_default_verify_paths.patch
+ - disable a test trying to connect to the web
- -- Sandro Tosi <morph at debian.org> Mon, 15 Aug 2011 17:57:55 +0200
+ -- Sandro Tosi <morph at debian.org> Mon, 15 Aug 2011 18:25:24 +0200
pyopenssl (0.12-1) unstable; urgency=low
Added: packages/pyopenssl/trunk/debian/patches/disable_test_set_default_verify_paths.patch
===================================================================
--- packages/pyopenssl/trunk/debian/patches/disable_test_set_default_verify_paths.patch (rev 0)
+++ packages/pyopenssl/trunk/debian/patches/disable_test_set_default_verify_paths.patch 2011-08-15 16:28:49 UTC (rev 18165)
@@ -0,0 +1,40 @@
+Index: pyopenssl-0.13~a1/OpenSSL/test/test_ssl.py
+===================================================================
+--- pyopenssl-0.13~a1.orig/OpenSSL/test/test_ssl.py 2011-08-15 18:23:31.612351434 +0200
++++ pyopenssl-0.13~a1/OpenSSL/test/test_ssl.py 2011-08-15 18:24:44.646743564 +0200
+@@ -661,21 +661,22 @@
+ # 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 TLSv1
+- context = Context(SSLv3_METHOD)
+- context.set_default_verify_paths()
+- context.set_verify(
+- VERIFY_PEER,
+- lambda conn, cert, errno, depth, preverify_ok: preverify_ok)
+-
+- client = socket()
+- client.connect(('verisign.com', 443))
+- clientSSL = Connection(context, client)
+- clientSSL.set_connect_state()
+- clientSSL.do_handshake()
+- clientSSL.send('GET / HTTP/1.0\r\n\r\n')
+- self.assertTrue(clientSSL.recv(1024))
++ #context = Context(SSLv3_METHOD)
++ #context.set_default_verify_paths()
++ #context.set_verify(
++ # VERIFY_PEER,
++ # lambda conn, cert, errno, depth, preverify_ok: preverify_ok)
++ #
++ #client = socket()
++ #client.connect(('verisign.com', 443))
++ #clientSSL = Connection(context, client)
++ #clientSSL.set_connect_state()
++ #clientSSL.do_handshake()
++ #clientSSL.send('GET / HTTP/1.0\r\n\r\n')
++ #self.assertTrue(clientSSL.recv(1024))
+
+
+ def test_set_default_verify_paths_signature(self):
Modified: packages/pyopenssl/trunk/debian/patches/series
===================================================================
--- packages/pyopenssl/trunk/debian/patches/series 2011-08-15 16:11:49 UTC (rev 18164)
+++ packages/pyopenssl/trunk/debian/patches/series 2011-08-15 16:28:49 UTC (rev 18165)
@@ -1 +1,2 @@
10_fix_doc_buildsystem.patch
+disable_test_set_default_verify_paths.patch
More information about the Python-modules-commits
mailing list