Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory:PowerPC
python-cotengra
fix-check.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-check.patch of Package python-cotengra
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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor