guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: gnu: python: Disable ssl test that fails with openssl-1.0.2b.


From: Mark H. Weaver
Subject: 01/02: gnu: python: Disable ssl test that fails with openssl-1.0.2b.
Date: Fri, 12 Jun 2015 07:42:31 +0000

mhw pushed a commit to branch openssl-update
in repository guix.

commit 81c1892c5033005b8623eb20873e3cf5e77319f5
Author: Mark H Weaver <address@hidden>
Date:   Fri Jun 12 03:24:12 2015 -0400

    gnu: python: Disable ssl test that fails with openssl-1.0.2b.
    
    * gnu/packages/patches/python-disable-ssl-test.patch: New file.
    * gnu-system.am (dist_patch_DATA): Add it.
    * gnu/packages/python.scm (python): Add patch.
---
 gnu-system.am                                      |    1 +
 gnu/packages/patches/python-disable-ssl-test.patch |   12 ++++++++++++
 gnu/packages/python.scm                            |    4 +++-
 3 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/gnu-system.am b/gnu-system.am
index 978e839..d24746f 100644
--- a/gnu-system.am
+++ b/gnu-system.am
@@ -522,6 +522,7 @@ dist_patch_DATA =                                           
\
   gnu/packages/patches/pybugz-encode-error.patch               \
   gnu/packages/patches/pybugz-stty.patch                       \
   gnu/packages/patches/pyqt-configure.patch                    \
+  gnu/packages/patches/python-disable-ssl-test.patch           \
   gnu/packages/patches/python-fix-tests.patch                  \
   gnu/packages/patches/python-libffi-mips-n32-fix.patch                \
   gnu/packages/patches/python2-rdflib-drop-sparqlwrapper.patch \
diff --git a/gnu/packages/patches/python-disable-ssl-test.patch 
b/gnu/packages/patches/python-disable-ssl-test.patch
new file mode 100644
index 0000000..e351c77
--- /dev/null
+++ b/gnu/packages/patches/python-disable-ssl-test.patch
@@ -0,0 +1,12 @@
+Disable a test that fails with openssl-1.0.2b.
+
+--- Lib/test/test_ssl.py.orig  2015-02-25 06:27:45.000000000 -0500
++++ Lib/test/test_ssl.py       2015-06-12 03:14:09.395212502 -0400
+@@ -2718,6 +2718,7 @@
+                                        chatty=True, connectionchatty=True)
+             self.assertIs(stats['compression'], None)
+ 
++        @unittest.skipIf(True, "openssl 1.0.2b complains: dh key too small")
+         def test_dh_params(self):
+             # Check we can get a connection with ephemeral Diffie-Hellman
+             context = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 914c2dc..232a785 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -207,7 +207,9 @@ data types.")
               (method url-fetch)
               (uri (string-append "https://www.python.org/ftp/python/";
                                   version "/Python-" version ".tar.xz"))
-              (patches (list (search-patch "python-fix-tests.patch")))
+              (patches (list (search-patch "python-fix-tests.patch")
+                             ;; XXX Try removing this patch for python > 3.4.3
+                             (search-patch "python-disable-ssl-test.patch")))
               (patch-flags '("-p0"))
               (sha256
                (base32



reply via email to

[Prev in Thread] Current Thread [Next in Thread]