File tests-int-division.patch of Package python-python-louvain

Index: python-louvain-0.16/test_community.py
===================================================================
--- python-louvain-0.16.orig/test_community.py
+++ python-louvain-0.16/test_community.py
@@ -61,7 +61,7 @@ class ModularityTest(unittest.TestCase):
             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)
openSUSE Build Service is sponsored by