guix-commits
[Top][All Lists]
Advanced

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

01/01: gnu: python-bz2file: Disable tests.


From: Ben Woodcroft
Subject: 01/01: gnu: python-bz2file: Disable tests.
Date: Wed, 3 Aug 2016 11:09:05 +0000 (UTC)

benwoodcroft pushed a commit to branch master
in repository guix.

commit 124df723a0150e968910e34d5e94023b18901d0c
Author: Ben Woodcroft <address@hidden>
Date:   Wed Aug 3 21:01:40 2016 +1000

    gnu: python-bz2file: Disable tests.
    
    * gnu/packages/python.scm (python-bz2file)[arguments]: Disable
    tests.
    (python2-bz2file)[arguments]: New field.
---
 gnu/packages/python.scm |   17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 0557ab5..41b9bd7 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8836,12 +8836,7 @@ LDFLAGS and parse the output to build extensions with 
setup.py.")
          "126s53fkpx04f33a829yqqk8fj4png3qwg4m66cvlmhmwc8zihb4"))))
     (build-system python-build-system)
     (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         ;; python setup.py test does not work as of 0.98
-         ;; but there is only the one test file
-         (replace 'check
-           (lambda _ (zero? (system* "python" "test_bz2file.py")))))))
+     `(#:tests? #f)) ; Tests use deprecated python modules.
     (home-page "https://github.com/nvawda/bz2file";)
     (synopsis "Read and write bzip2-compressed files")
     (description
@@ -8858,7 +8853,15 @@ development version of CPython that are not available in 
older releases.")
     (package
       (inherit base)
       (native-inputs
-       `(("python2-setuptools" ,python2-setuptools))))))
+       `(("python2-setuptools" ,python2-setuptools)))
+      (arguments
+       `(#:phases
+         (modify-phases %standard-phases
+           ;; 'python setup.py test' does not work as of 0.98.
+           ;; There is only the one test file, so we run it directly.
+           (replace 'check
+                    (lambda _ (zero? (system* "python"
+                                              "test_bz2file.py"))))))))))
 
 (define-public python-cysignals
   (package



reply via email to

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