summaryrefslogtreecommitdiff
path: root/bindings/python/tests/cindex/test_cursor_kind.py
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/python/tests/cindex/test_cursor_kind.py')
-rw-r--r--bindings/python/tests/cindex/test_cursor_kind.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/bindings/python/tests/cindex/test_cursor_kind.py b/bindings/python/tests/cindex/test_cursor_kind.py
index bdfa318558355..d7a1cfad8f946 100644
--- a/bindings/python/tests/cindex/test_cursor_kind.py
+++ b/bindings/python/tests/cindex/test_cursor_kind.py
@@ -18,10 +18,14 @@ def test_kind_groups():
for k in CursorKind.get_all_kinds():
group = [n for n in ('is_declaration', 'is_reference', 'is_expression',
- 'is_statement', 'is_invalid')
+ 'is_statement', 'is_invalid', 'is_attribute')
if getattr(k, n)()]
- if k == CursorKind.TRANSLATION_UNIT:
+ if k in ( CursorKind.TRANSLATION_UNIT,
+ CursorKind.MACRO_DEFINITION,
+ CursorKind.MACRO_INSTANTIATION,
+ CursorKind.INCLUSION_DIRECTIVE,
+ CursorKind.PREPROCESSING_DIRECTIVE):
assert len(group) == 0
else:
assert len(group) == 1