From 0411f46d26a9aac426511b3615020f709ec149ae Mon Sep 17 00:00:00 2001 From: Chuck Hastings Date: Thu, 11 Feb 2021 17:31:29 -0500 Subject: [PATCH] set a relative tolerance to 1e-3, this is mostly a test that cugraph works not a test of pagerank behavior --- test/cugraph/test_pagerank.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cugraph/test_pagerank.py b/test/cugraph/test_pagerank.py index 68f7edca..88608ce6 100644 --- a/test/cugraph/test_pagerank.py +++ b/test/cugraph/test_pagerank.py @@ -100,4 +100,4 @@ def test_pagerank() : assert len(expectedPageRanks) == len(gdf_page["pagerank"]) for (actual, expected) in zip(gdf_page["pagerank"].to_pandas(), expectedPageRanks): - assert actual == pytest.approx(expected) + assert actual == pytest.approx(expected, rel=1e-3)