[clang] d0ffb53 - [libclang/python] Fix incorrect assert in test (#114395)

via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 31 07:20:34 PDT 2024


Author: Jannick Kremer
Date: 2024-10-31T15:20:30+01:00
New Revision: d0ffb5369c3d9b091bb6c8edeb596cb46c99e26d

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

LOG: [libclang/python] Fix incorrect assert in test (#114395)

This mistake was introduced in #109846

Added: 
    

Modified: 
    clang/bindings/python/tests/cindex/test_cursor.py

Removed: 
    


################################################################################
diff  --git a/clang/bindings/python/tests/cindex/test_cursor.py b/clang/bindings/python/tests/cindex/test_cursor.py
index 77d8ca415708f8..f118613e3209d2 100644
--- a/clang/bindings/python/tests/cindex/test_cursor.py
+++ b/clang/bindings/python/tests/cindex/test_cursor.py
@@ -344,7 +344,7 @@ class Bar {
         )
 
         self.assertEqual(len(copy_assignment_operators_cursors), 10)
-        self.assertTrue(len(non_copy_assignment_operators_cursors), 9)
+        self.assertEqual(len(non_copy_assignment_operators_cursors), 7)
 
         self.assertTrue(
             all(


        


More information about the cfe-commits mailing list