mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 13:28:12 -05:00
gnu: python-graphtools: Fix tests.
* gnu/packages/graph.scm (python-graphtools)[arguments]: Add 'patch-tests phase. Change-Id: I5ffb4321ddd7e33e812bcb1cf67cee069b07b5f8
This commit is contained in:
parent
1b44a23503
commit
a4ad0a46ef
1 changed files with 9 additions and 0 deletions
|
@ -447,6 +447,15 @@ (define-public python-graphtools
|
|||
(list
|
||||
#:phases
|
||||
'(modify-phases %standard-phases
|
||||
(add-after 'unpack 'patch-tests
|
||||
(lambda _
|
||||
;; The warning message has changed in numpy.
|
||||
(substitute* "test/test_data.py"
|
||||
(("\"A sparse matrix was passed, but.*array.\",")
|
||||
"\"Sparse data was passed, but dense data is required. Use '.toarray()' to convert to a dense numpy array.\",")
|
||||
;; anndata prints a warning that causes the test to fail.
|
||||
(("import warnings" m)
|
||||
(string-append m "\nwarnings.filterwarnings(\"ignore\")")))))
|
||||
(replace 'check
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
|
|
Loading…
Reference in a new issue