From c4d11c498c75213c1dfb8cb70330e174d4f65b9c Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Mon, 6 Nov 2023 11:05:23 -0500 Subject: [PATCH] fix unittest assertion deprecation --- python/gtsam/tests/test_Robust.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/gtsam/tests/test_Robust.py b/python/gtsam/tests/test_Robust.py index c2ab9d4a47..1d7e9f52d4 100644 --- a/python/gtsam/tests/test_Robust.py +++ b/python/gtsam/tests/test_Robust.py @@ -10,10 +10,11 @@ """ import unittest -import gtsam import numpy as np from gtsam.utils.test_case import GtsamTestCase +import gtsam + class TestRobust(GtsamTestCase): @@ -37,7 +38,7 @@ def custom_loss(e): v = gtsam.Values() v.insert(0, 0.0) - self.assertAlmostEquals(f.error(v), 0.125) + self.assertAlmostEqual(f.error(v), 0.125) if __name__ == "__main__": unittest.main()