Skip to content

Commit 8fb7224

Browse files
committed
assertEquals again
1 parent 4bc7607 commit 8fb7224

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/estimation_tests/test_genetic_programming_regression_fitter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def test_simplify_string(self):
2121
outcome=None,
2222
max_order=1,
2323
)
24-
self.assertEquals(str(gp.simplify("power_1(x1)")), "x1")
24+
self.assertEqual(str(gp.simplify("power_1(x1)")), "x1")
2525

2626
def test_fitness_string(self):
2727
gp = GP(
@@ -30,7 +30,7 @@ def test_fitness_string(self):
3030
outcome="outcome",
3131
max_order=0,
3232
)
33-
self.assertEquals(gp.fitness("add(x1, 1)"), (0,))
33+
self.assertEqual(gp.fitness("add(x1, 1)"), (0,))
3434

3535
def test_fitness_inf(self):
3636
gp = GP(
@@ -40,4 +40,4 @@ def test_fitness_inf(self):
4040
max_order=0,
4141
extra_operators=[(root, 1)],
4242
)
43-
self.assertEquals(gp.fitness("root(-1)"), (float("inf"),))
43+
self.assertEqual(gp.fitness("root(-1)"), (float("inf"),))

0 commit comments

Comments
 (0)