guix-commits
[Top][All Lists]
Advanced

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

02/02: gnu: python-joblib: Disable failing tests.


From: Ricardo Wurmus
Subject: 02/02: gnu: python-joblib: Disable failing tests.
Date: Sun, 30 Oct 2016 17:55:52 +0000 (UTC)

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

commit a8dd960ac0c68957dac281812f0d16f1295a6eaa
Author: Ricardo Wurmus <address@hidden>
Date:   Sun Oct 30 18:54:41 2016 +0100

    gnu: python-joblib: Disable failing tests.
    
    * gnu/packages/python.scm (python-joblib)[arguments]: Add phase to
    disable failing tests.
---
 gnu/packages/python.scm |   19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index c27137c..9c7320f 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -2757,6 +2757,25 @@ logic-free templating system Mustache.")
                (base32
                 "0787k919zlfmgymprz5bzv0v1df5bbirlf3awrghmjgvkrd9dci9"))))
     (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'check 'disable-failing-tests
+           (lambda _
+             ;; This numpydoc tests fails for unknown reasons
+             (delete-file "doc/sphinxext/numpydoc/tests/test_docscrape.py")
+             ;; This numpydoc test depends on matplotlib, which is not a
+             ;; required input.
+             (delete-file 
"doc/sphinxext/numpydoc/tests/test_plot_directive.py")
+             ;; These tests fail to execute sys.executable
+             (substitute* "joblib/test/test_parallel.py"
+               (("import nose" line)
+                (string-append "from nose.plugins.skip import SkipTest\n" 
line))
+               (("def test_nested_parallel_warnings" line)
+                (string-append "@SkipTest\n" line))
+               (("def test_parallel_with_interactively_defined_functions" line)
+                (string-append "@SkipTest\n" line)))
+             #t)))))
     (native-inputs
      `(("python-setuptools" ,python-setuptools)
        ("python-nose"       ,python-nose)



reply via email to

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