guix-commits
[Top][All Lists]
Advanced

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

01/01: gnu: python2-subprocess32: Skip the tests.


From: Leo Famulari
Subject: 01/01: gnu: python2-subprocess32: Skip the tests.
Date: Fri, 5 Jan 2018 17:48:57 -0500 (EST)

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

commit 20c295f9f3d8dfaac9da50502354541ea9cdb01a
Author: Leo Famulari <address@hidden>
Date:   Fri Jan 5 17:45:17 2018 -0500

    gnu: python2-subprocess32: Skip the tests.
    
    * gnu/packages/python.scm (python2-subprocess32)[arguments]: Skip the
    tests.
---
 gnu/packages/python.scm | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 4c69f5a..5d87c74 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -7166,6 +7166,10 @@ Python at your fingertips, in Lisp form.")
     (build-system python-build-system)
     (arguments
      `(#:python ,python-2
+       ;; The test suite fails with Python > 2.7.13:
+       ;;     import test.support
+       ;; ImportError: No module named support
+       #:tests? #f
        #:phases
        (modify-phases %standard-phases
          (add-after 'unpack 'patch-/bin/sh
@@ -7173,15 +7177,7 @@ Python at your fingertips, in Lisp form.")
              (substitute* '("subprocess32.py"
                             "test_subprocess32.py")
                (("/bin/sh") (which "sh")))
-             #t))
-         (delete 'check)
-         (add-after 'install 'check
-           (lambda* (#:key inputs outputs #:allow-other-keys)
-             ;; For some reason this package fails to import
-             ;; _posixsubprocess.so when PYTHONPATH is set to the build
-             ;; directory. Running tests after install is easier.
-             (add-installed-pythonpath inputs outputs)
-             (zero? (system* "python" "test_subprocess32.py")))))))
+             #t)))))
     (home-page "https://github.com/google/python-subprocess32";)
     (synopsis "Backport of the subprocess module from Python 3.2")
     (description



reply via email to

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