guix-commits
[Top][All Lists]
Advanced

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

02/02: gnu: python-fixtures: Fix test suite.


From: Marius Bakke
Subject: 02/02: gnu: python-fixtures: Fix test suite.
Date: Wed, 14 Dec 2016 09:41:01 +0000 (UTC)

mbakke pushed a commit to branch python-tests
in repository guix.

commit f6c1ef180459a525c1b38a5a7c37fec3cfb45ab9
Author: Marius Bakke <address@hidden>
Date:   Wed Dec 14 10:38:26 2016 +0100

    gnu: python-fixtures: Fix test suite.
    
    * gnu/packages/python.scm (python-fixtures, python2-fixtures): Replace 
'check'
      with custom phase.
      [native-inputs]: Add python-mock.
---
 gnu/packages/python.scm |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 080d3fc..ceb4896 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -2068,10 +2068,18 @@ from git information.
         (base32
          "0djxvdwm8s60dbfn7bhf40x6g818p3b3mlwijm1c3bqg7msn271y"))))
     (build-system python-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda _
+             (zero? (system* "python" "-m" "testtools.run"
+                             "fixtures.test_suite")))))))
     (propagated-inputs
      `(("python-six" ,python-six)))
     (native-inputs
-     `(("python-pbr-minimal" ,python-pbr-minimal)
+     `(("python-mock" ,python-mock)
+       ("python-pbr-minimal" ,python-pbr-minimal)
        ("python-testtools" ,python-testtools)))
     (home-page "https://launchpad.net/python-fixtures";)
     (synopsis "Python test fixture library")



reply via email to

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