From 64ed90b775ceb41eec9b26fe2c83ecda0d95f5b6 Mon Sep 17 00:00:00 2001 From: ihsan Date: Wed, 3 Jan 2024 13:20:33 +0300 Subject: [PATCH] Changed `assertEquals` to `assertEqual` since this fails on Python 3.12. --- .../backward_compatible/proxy/reliable_topic_test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/integration/backward_compatible/proxy/reliable_topic_test.py b/tests/integration/backward_compatible/proxy/reliable_topic_test.py index 2e7f369f8a..8238fecdcc 100644 --- a/tests/integration/backward_compatible/proxy/reliable_topic_test.py +++ b/tests/integration/backward_compatible/proxy/reliable_topic_test.py @@ -117,7 +117,7 @@ def on_cancel(self): self.assertTrueEventually(lambda: self.assertEqual(["a", "b"], messages)) - self.assertEquals(0, on_cancel_call_count[0]) + self.assertEqual(0, on_cancel_call_count[0]) def test_add_listener_with_retrieve_initial_sequence(self): topic = self.get_topic(random_string()) @@ -278,7 +278,7 @@ def on_cancel(self) -> None: # Should be cancelled since on_message raised error self.assertTrueEventually(lambda: self.assertEqual(0, len(topic._wrapped._runners))) - self.assertEquals(1, on_cancel_call_count[0]) + self.assertEqual(1, on_cancel_call_count[0]) def test_add_listener_when_on_message_and_is_terminal_raises_error(self): topic = self.get_topic(random_string()) @@ -320,7 +320,7 @@ def on_cancel(self) -> None: # Should be cancelled since on_message raised error self.assertTrueEventually(lambda: self.assertEqual(0, len(topic._wrapped._runners))) - self.assertEquals(1, on_cancel_call_count[0]) + self.assertEqual(1, on_cancel_call_count[0]) def test_add_listener_with_non_callable(self): topic = self.get_topic(random_string()) @@ -353,7 +353,7 @@ def on_cancel(self) -> None: registration_id = topic.add_listener(Listener()) self.assertTrue(topic.remove_listener(registration_id)) - self.assertEquals(1, on_cancel_call_count[0]) + self.assertEqual(1, on_cancel_call_count[0]) def test_remove_listener_does_not_receive_messages_after_removal(self): topic = self.get_topic(random_string())