From 4cd675f47523162fb7d81d8bda134a78347836d1 Mon Sep 17 00:00:00 2001 From: HolyWu Date: Fri, 23 Aug 2024 04:52:57 +0800 Subject: [PATCH] Fix assertEquals AttributeError on Python 3.12 (#3112) --- tests/py/dynamo/lowering/test_decompositions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/py/dynamo/lowering/test_decompositions.py b/tests/py/dynamo/lowering/test_decompositions.py index 74ac6cde62..2f06aa7d23 100644 --- a/tests/py/dynamo/lowering/test_decompositions.py +++ b/tests/py/dynamo/lowering/test_decompositions.py @@ -1093,13 +1093,13 @@ def forward(self, input): min_block_size=2, ) - self.assertEquals( + self.assertEqual( len(expected_ops_unseen), 0, f"The following expected ops were not encountered: {expected_ops_unseen}", ) - self.assertEquals( + self.assertEqual( len(unexpected_ops_seen), 0, f"The following expected ops were not encountered: {unexpected_ops_seen}",