From 4dce3c54d92136c53f07421a084c515ce2f87f91 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 17 Nov 2022 17:44:41 -0800 Subject: [PATCH] custom_check: Remove assertEquals check. Ruff checks this as U005 (and even auto-fixes it). Signed-off-by: Anders Kaseorg --- tools/linter_lib/custom_check.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tools/linter_lib/custom_check.py b/tools/linter_lib/custom_check.py index 68311273f0..c28bf610e2 100644 --- a/tools/linter_lib/custom_check.py +++ b/tools/linter_lib/custom_check.py @@ -276,12 +276,6 @@ python_rules = RuleList( "good_lines": ["def foo (self):"], "bad_lines": ["def foo(self: Any):"], }, - { - "pattern": "assertEquals[(]", - "description": "Use assertEqual, not assertEquals (which is deprecated).", - "good_lines": ["assertEqual(1, 2)"], - "bad_lines": ["assertEquals(1, 2)"], - }, { "pattern": r"assertEqual[(]len[(][^\n ]*[)],", "description": "Use the assert_length helper instead of assertEqual(len(..), ..).",