Author: Paweł Bylica
Date: 2020-09-28T21:11:50+02:00
New Revision: 0c82fa677f24d8a9656af41ac9cc64ea4f818bc0

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

LOG: [python][tests] Fix string comparison with "is"

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang/bindings/python/tests/cindex/test_cursor_kind.py 
b/clang/bindings/python/tests/cindex/test_cursor_kind.py
index e6b9558b3cc1..ed245d593d55 100644
--- a/clang/bindings/python/tests/cindex/test_cursor_kind.py
+++ b/clang/bindings/python/tests/cindex/test_cursor_kind.py
@@ -10,7 +10,7 @@
 
 class TestCursorKind(unittest.TestCase):
     def test_name(self):
-        self.assertTrue(CursorKind.UNEXPOSED_DECL.name is 'UNEXPOSED_DECL')
+        self.assertEqual(CursorKind.UNEXPOSED_DECL.name, 'UNEXPOSED_DECL')
 
     def test_get_all_kinds(self):
         kinds = CursorKind.get_all_kinds()


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to