summaryrefslogtreecommitdiff
path: root/clang/bindings
diff options
context:
space:
mode:
authorPaweł Bylica <chfast@gmail.com>2020-09-28 20:47:43 +0200
committerPaweł Bylica <chfast@gmail.com>2020-09-28 21:11:50 +0200
commit0c82fa677f24d8a9656af41ac9cc64ea4f818bc0 (patch)
tree4ae8d2f106eb01e536f0f05783b8424249828cec /clang/bindings
parente851aeb0a5084d968d6384fbc2257bbe05dcdacb (diff)
downloadllvm-0c82fa677f24d8a9656af41ac9cc64ea4f818bc0.tar.gz
[python][tests] Fix string comparison with "is"
Diffstat (limited to 'clang/bindings')
-rw-r--r--clang/bindings/python/tests/cindex/test_cursor_kind.py2
1 files changed, 1 insertions, 1 deletions
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 @@ import unittest
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()