guix-commits
[Top][All Lists]
Advanced

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

01/01: Revert "gnu: python-numpy-bootstrap: Reduce matrix size in failin


From: Federico Beffa
Subject: 01/01: Revert "gnu: python-numpy-bootstrap: Reduce matrix size in failing test."
Date: Tue, 16 Dec 2014 17:38:16 +0000

beffa pushed a commit to branch master
in repository guix.

commit 6a843168489faa0873a33990037aaa8844bf0d23
Author: Federico Beffa <address@hidden>
Date:   Tue Dec 16 18:34:37 2014 +0100

    Revert "gnu: python-numpy-bootstrap: Reduce matrix size in failing test."
    
    This reverts commit 31557440c29f8d93b366422bfec4dab341eff79f as it did not
    provide the desired effect.  The test is still failing.
---
 gnu/packages/python.scm |   29 +++++++++++------------------
 1 files changed, 11 insertions(+), 18 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 183fd54..dc7def5 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -1928,24 +1928,17 @@ writing C extensions for Python as easy as Python 
itself.")
                       (string-append (assoc-ref inputs "atlas") 
                                      "/lib/libsatlas.so"))))
             (setenv "ATLAS" atlas-lib)))
-        (alist-cons-before
-         'check 'fix-failing-tests
-         (lambda _
-           (substitute* (find-files "numpy/linalg/tests" 
-                                    "test_regression\\.py")
-             (("x = np.eye(1000, 66)")
-              "x = np.eye(10, 66)")))
-         ;; Tests can only be run after the library has been installed and not
-         ;; within the source directory.
-         (alist-cons-after
-          'install 'check
-          (lambda _ 
-            (with-directory-excursion "/tmp"
-              (zero? (system* "python" "-c" 
-                              "import numpy; numpy.test(verbose=2)"))))
-          (alist-delete 
-           'check 
-           %standard-phases))))))
+        ;; Tests can only be run after the library has been installed and not
+        ;; within the source directory.
+        (alist-cons-after
+         'install 'check
+         (lambda _ 
+           (with-directory-excursion "/tmp"
+             (zero? (system* "python" "-c" 
+                             "import numpy; numpy.test(verbose=2)"))))
+         (alist-delete 
+          'check 
+          %standard-phases)))))
     (home-page "http://www.numpy.org/";)
     (synopsis "Fundamental package for scientific computing with Python")
     (description "NumPy is the fundamental package for scientific computing



reply via email to

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