guix-commits
[Top][All Lists]
Advanced

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

24/43: gnu: python-pytest: Run the tests again.


From: Marius Bakke
Subject: 24/43: gnu: python-pytest: Run the tests again.
Date: Tue, 21 Aug 2018 11:25:57 -0400 (EDT)

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

commit 4750b3a268ed511fd50e6b348a1a81b5f76b5a40
Author: Marius Bakke <address@hidden>
Date:   Tue Aug 21 05:46:47 2018 +0200

    gnu: python-pytest: Run the tests again.
    
    "python setup.py test" is ineffective since 3.6.x.  The circle is complete.
    
    * gnu/packages/check.scm (python-pytest)[arguments]: Override 'check' phase.
    [native-inputs]: Add PYTHON-PYTEST-BOOTSTRAP.
---
 gnu/packages/check.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 572761f..ddd5325 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -642,7 +642,8 @@ standard library.")
                 (string-append "@pytest.mark.skip"
                                "(reason=\"Assumes that /usr exists.\")\n    "
                                line)))
-             #t)))))
+             #t))
+         (replace 'check (lambda _ (invoke "pytest" "-vv"))))))
     (propagated-inputs
      `(("python-atomicwrites" ,python-atomicwrites)
        ("python-attrs" ,python-attrs-bootstrap)
@@ -656,6 +657,7 @@ standard library.")
        ("python-hypothesis" ,python-hypothesis)
        ("python-nose" ,python-nose)
        ("python-mock" ,python-mock)
+       ("python-pytest" ,python-pytest-bootstrap)
        ("python-setuptools-scm" ,python-setuptools-scm)))
     (home-page "http://pytest.org";)
     (synopsis "Python testing library")



reply via email to

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