Skip to content

Commit 0c82fa6

Browse files
committed
[python][tests] Fix string comparison with "is"
1 parent e851aeb commit 0c82fa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
class TestCursorKind(unittest.TestCase):
1212
def test_name(self):
13-
self.assertTrue(CursorKind.UNEXPOSED_DECL.name is 'UNEXPOSED_DECL')
13+
self.assertEqual(CursorKind.UNEXPOSED_DECL.name, 'UNEXPOSED_DECL')
1414

1515
def test_get_all_kinds(self):
1616
kinds = CursorKind.get_all_kinds()

0 commit comments

Comments
 (0)