Skip to content

Commit

Permalink
fix unittest assertion deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
varunagrawal committed Nov 6, 2023
1 parent ecd6450 commit c4d11c4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/gtsam/tests/test_Robust.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
"""
import unittest

import gtsam
import numpy as np
from gtsam.utils.test_case import GtsamTestCase

import gtsam


class TestRobust(GtsamTestCase):

Expand All @@ -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()

0 comments on commit c4d11c4

Please sign in to comment.