[clang] [NFC] Correct the misuse of the API in the Clang test-report script. (PR #108725)

via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 14 19:02:32 PDT 2024


https://github.com/c8ef created https://github.com/llvm/llvm-project/pull/108725

ref: https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertEqual

>From 1f56fd3444b6f7667a7036a29cba825f7eac77b0 Mon Sep 17 00:00:00 2001
From: c8ef <c8ef at outlook.com>
Date: Sun, 15 Sep 2024 10:00:12 +0800
Subject: [PATCH] Update test_report.py

---
 clang/tools/scan-build-py/tests/unit/test_report.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/tools/scan-build-py/tests/unit/test_report.py b/clang/tools/scan-build-py/tests/unit/test_report.py
index 4d85590a211229..88dcb965d0da34 100644
--- a/clang/tools/scan-build-py/tests/unit/test_report.py
+++ b/clang/tools/scan-build-py/tests/unit/test_report.py
@@ -538,7 +538,7 @@ def test_merge_updates_embedded_link(self):
                         "test message 6-1 [link](sarif:/runs/4/results/0)",
                     ],
                 )
-                self.assertEquals(
+                self.assertEqual(
                     thread_flows,
                     [
                         "test message 1-2 [link](sarif:/runs/1/results/0)",



More information about the cfe-commits mailing list