From def91793772c3e77ab4167d175903a5365c24b4b Mon Sep 17 00:00:00 2001 From: MeggyCal Date: Sat, 16 Mar 2024 18:04:09 +0100 Subject: [PATCH] int division in tests (#104) Thank you very much ! --- test_community.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_community.py b/test_community.py index 566a4b1..2e1b81a 100644 --- a/test_community.py +++ b/test_community.py @@ -61,7 +61,7 @@ def test_range(self): graph = nx.erdos_renyi_graph(50, 0.1) part = dict([]) for node in graph: - part[node] = random.randint(0, self.number_of_tests / 10) + part[node] = random.randint(0, self.number_of_tests // 10) mod = co.modularity(part, graph) self.assertGreaterEqual(mod, -1) self.assertLessEqual(mod, 1)