diff --git a/fix-check.patch b/fix-check.patch new file mode 100644 index 0000000..489e726 --- /dev/null +++ b/fix-check.patch @@ -0,0 +1,18 @@ +diff --git a/tests/test_hypergraph.py b/tests/test_hypergraph.py +index 5260af0..eff1cd5 100644 +--- a/tests/test_hypergraph.py ++++ b/tests/test_hypergraph.py +@@ -1,3 +1,4 @@ ++import pytest + import cotengra as ctg + + def test_shortest_distances(): +@@ -14,7 +15,7 @@ def test_resistance_centrality(): + inputs, output, _, size_dict = ctg.utils.lattice_equation([3, 3]) + hg = ctg.HyperGraph(inputs, output, size_dict) + cents = hg.resistance_centrality() +- assert cents[0] == 0.0 ++ assert cents[0] == pytest.approx(0.0) + assert 0.0 < cents[3] < 1.0 + assert cents[4] == 1.0 + diff --git a/python-cotengra.changes b/python-cotengra.changes index 910e357..60fb70b 100644 --- a/python-cotengra.changes +++ b/python-cotengra.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Mar 21 09:04:19 UTC 2024 - Guillaume GARDET + +- Fix test for aarch64 with: + * fix-check.patch + ------------------------------------------------------------------- Tue Feb 27 20:19:35 UTC 2024 - Ben Greiner diff --git a/python-cotengra.spec b/python-cotengra.spec index 373f00c..902f8ed 100644 --- a/python-cotengra.spec +++ b/python-cotengra.spec @@ -23,6 +23,7 @@ Summary: Hyper optimized contraction trees for large tensor networks and License: Apache-2.0 URL: https://github.com/jcmgray/cotengra Source: https://files.pythonhosted.org/packages/source/c/cotengra/cotengra-%{version}.tar.gz +Patch1: fix-check.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools >= 45} BuildRequires: %{python_module setuptools_scm >= 6.2}