Skip to content

Commit

Permalink
[tests] fixed deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigul committed Feb 5, 2024
1 parent 00ea8c4 commit a0003a8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/test_costmaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def test_attachment_exclusion(self):
self.milk.set_pose(Pose([0.5, 0, 1]))
self.cereal.set_pose(Pose([50, 50, 0]))
o = OccupancyCostmap(0.2, from_ros=False, size=200, resolution=0.02, origin=Pose([0, 0, 0], [0, 0, 0, 1]))
self.assertEquals(np.sum(o.map[115:135, 90:110]), 0)
self.assertEqual(np.sum(o.map[115:135, 90:110]), 0)

self.robot.attach(self.milk)
self.assertTrue(np.sum(o.map[80:90, 90:110]) != 0)
Expand Down
2 changes: 1 addition & 1 deletion test/test_language.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def test_set(param):
def test_perform_parallel(self):

def check_thread_id(main_id):
self.assertNotEquals(main_id, threading.get_ident())
self.assertNotEqual(main_id, threading.get_ident())
act = Code(check_thread_id, {"main_id": threading.get_ident()})
act2 = Code(check_thread_id, {"main_id": threading.get_ident()})
act3 = Code(check_thread_id, {"main_id": threading.get_ident()})
Expand Down
2 changes: 1 addition & 1 deletion test/test_pose.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,5 @@ def test_transform_copy(self):
t = Transform([1, 1, 1], [0, 0, 0, 1], "map", "test_frame")

t_copy = t.copy()
self.assertEquals(t, t_copy)
self.assertEqual(t, t_copy)
self.assertFalse(t is t_copy)

0 comments on commit a0003a8

Please sign in to comment.