[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:03:02 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: None (c8ef)

<details>
<summary>Changes</summary>

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

---
Full diff: https://github.com/llvm/llvm-project/pull/108725.diff


1 Files Affected:

- (modified) clang/tools/scan-build-py/tests/unit/test_report.py (+1-1) 


``````````diff
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)",

``````````

</details>


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


More information about the cfe-commits mailing list