Skip to content

Commit c710884

Browse files
committed
fix: remove deprecated construct from a unit test
1 parent 06d120a commit c710884

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_structural.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,9 @@ def testEdgeBetweennessCentrality(self):
271271

272272
g = Graph.Lattice([3, 3], circular=False)
273273
observed = g.edge_betweenness(sources=[0, 8], targets=[0, 8])
274-
self.assertEquals(len(observed), g.ecount())
274+
self.assertEqual(len(observed), g.ecount())
275275
for x, y in zip(observed, [1 / 2, 1 / 2, 1 / 6, 1 / 3, 1 / 6, 1 / 3, 1 / 6, 1 / 3, 1 / 3, 1 / 2, 1 / 6, 1 / 2]):
276-
self.assertAlmostEquals(x, y)
276+
self.assertAlmostEqual(x, y)
277277
self.assertRaises(ValueError, g.edge_betweenness, cutoff=2, sources=[0, 8], targets=[0, 8])
278278

279279
def testClosenessCentrality(self):

0 commit comments

Comments
 (0)