[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
93/93: gnu: python-graphtools: Fix tests.
From: |
guix-commits |
Subject: |
93/93: gnu: python-graphtools: Fix tests. |
Date: |
Sun, 5 May 2024 16:45:05 -0400 (EDT) |
rekado pushed a commit to branch wip-python-team
in repository guix.
commit a4ad0a46efcea17390e0f6e3a9568597dab7af80
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Sun May 5 12:02:03 2024 +0200
gnu: python-graphtools: Fix tests.
* gnu/packages/graph.scm (python-graphtools)[arguments]: Add 'patch-tests
phase.
Change-Id: I5ffb4321ddd7e33e812bcb1cf67cee069b07b5f8
---
gnu/packages/graph.scm | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/gnu/packages/graph.scm b/gnu/packages/graph.scm
index 8be720215e..115fe20b52 100644
--- a/gnu/packages/graph.scm
+++ b/gnu/packages/graph.scm
@@ -447,6 +447,15 @@ large networks.")
(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?
- 47/93: gnu: python-anndata: Update to 0.10.7., (continued)
- 47/93: gnu: python-anndata: Update to 0.10.7., guix-commits, 2024/05/05
- 48/93: gnu: python-biom-format: Untangle from python-scikit-bio., guix-commits, 2024/05/05
- 50/93: gnu: python-pandas-stubs: Update tests., guix-commits, 2024/05/05
- 54/93: gnu: python-dask: Disable all tokenize tests., guix-commits, 2024/05/05
- 62/93: gnu: tadbit: Update to 1.0.1-2.2838129., guix-commits, 2024/05/05
- 12/93: gnu: Add python-multiscale-spatial-image., guix-commits, 2024/05/05
- 16/93: gnu: Add python-fastcluster., guix-commits, 2024/05/05
- 23/93: gnu: python-plastid: Replace nose with pytest., guix-commits, 2024/05/05
- 76/93: gnu: Add python-termcolor-1., guix-commits, 2024/05/05
- 87/93: gnu: python-plotnine: Fix version string., guix-commits, 2024/05/05
- 93/93: gnu: python-graphtools: Fix tests.,
guix-commits <=
- 82/93: gnu: python-bioframe: Update to 0.6.4., guix-commits, 2024/05/05
- 21/93: gnu: Add python-cvxpy., guix-commits, 2024/05/05
- 64/93: gnu: tadbit: Add R to inputs., guix-commits, 2024/05/05
- 68/93: gnu: snakemake-7: Make compatible with tabulate 0.9.0., guix-commits, 2024/05/05
- 83/93: gnu: python-cooltools: Update to 0.7.0., guix-commits, 2024/05/05
- 92/93: gnu: python-gpy: Update to 1.13.1., guix-commits, 2024/05/05
- 17/93: gnu: Add python-scs., guix-commits, 2024/05/05
- 51/93: gnu: python-tabulate: Enable tests and fix version string., guix-commits, 2024/05/05
- 75/93: gnu: python-pytest-shutil: Disable a test., guix-commits, 2024/05/05
- 22/93: gnu: Add python-metacells., guix-commits, 2024/05/05