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

via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 1 05:52:17 PDT 2024


Author: c8ef
Date: 2024-10-01T14:52:14+02:00
New Revision: 2e559c3dceef94bcab7a112cc5e6600837851dab

URL: https://github.com/llvm/llvm-project/commit/2e559c3dceef94bcab7a112cc5e6600837851dab
DIFF: https://github.com/llvm/llvm-project/commit/2e559c3dceef94bcab7a112cc5e6600837851dab.diff

LOG: [NFC] Correct the misuse of the API in the Clang test-report script (#108725)

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

Added: 
    

Modified: 
    clang/tools/scan-build-py/tests/unit/test_report.py

Removed: 
    


################################################################################
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