From 0c82fa677f24d8a9656af41ac9cc64ea4f818bc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Mon, 28 Sep 2020 20:47:43 +0200 Subject: [PATCH] [python][tests] Fix string comparison with "is" --- clang/bindings/python/tests/cindex/test_cursor_kind.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()