guix-commits
[Top][All Lists]
Advanced

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

02/02: gnu: python-2: Enable tests.


From: Efraim Flashner
Subject: 02/02: gnu: python-2: Enable tests.
Date: Mon, 15 Feb 2016 07:28:36 +0000

efraim pushed a commit to branch core-updates
in repository guix.

commit 10a42aa2e285097e3bd14e5a6a62d8dd3fe7a92f
Author: Efraim Flashner <address@hidden>
Date:   Sun Feb 14 22:15:57 2016 +0200

    gnu: python-2: Enable tests.
    
    * gnu/packages/python.scm (python-2)[source]: Delete failing tests.
    [arguments]: Enable tests.
---
 gnu/packages/python.scm |   19 ++++++++++++++++---
 1 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index ebaa88d..987e123 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -100,13 +100,26 @@
       (patches (map search-patch
                     '("python-2.7-search-paths.patch"
                       "python-2-deterministic-build-info.patch"
-                      "python-2.7-source-date-epoch.patch")))))
+                      "python-2.7-source-date-epoch.patch")))
+      (modules '((guix build utils)))
+      ;; suboptimal to delete failing tests here, but if we delete them in the
+      ;; arguments then we need to make sure to strip out that phase when it
+      ;; gets inherited by python and python-minimal.
+      (snippet
+       '(begin
+          (for-each delete-file
+                    '("Lib/test/test_compileall.py"
+                      "Lib/test/test_distutils.py"
+                      "Lib/test/test_import.py"
+                      "Lib/test/test_shutil.py"
+                      "Lib/test/test_socket.py"
+                      "Lib/test/test_subprocess.py"))
+          #t))))
     (outputs '("out"
                "tk"))                     ;tkinter; adds 50 MiB to the closure
     (build-system gnu-build-system)
     (arguments
-     `(#:tests? #f
-       ;; 356 tests OK.
+     `(;; 356 tests OK.
        ;; 6 tests failed:
        ;;     test_compileall test_distutils test_import test_shutil 
test_socket
        ;;     test_subprocess



reply via email to

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