diff options
author | Paweł Bylica <chfast@gmail.com> | 2020-09-28 20:47:43 +0200 |
---|---|---|
committer | Paweł Bylica <chfast@gmail.com> | 2020-09-28 21:11:50 +0200 |
commit | 0c82fa677f24d8a9656af41ac9cc64ea4f818bc0 (patch) | |
tree | 4ae8d2f106eb01e536f0f05783b8424249828cec /clang/bindings | |
parent | e851aeb0a5084d968d6384fbc2257bbe05dcdacb (diff) | |
download | llvm-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.py | 2 |
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() |