diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2011-07-17 15:40:56 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2011-07-17 15:40:56 +0000 | 
| commit | 180abc3db9ae3b4fc63cd65b15697e6ffcc8a657 (patch) | |
| tree | 2097d084eb235c0b12c0bff3445f4ec7bbaa8a12 /bindings/python/tests/cindex/test_cursor_kind.py | |
| parent | 29cafa66ad3878dbb9f82615f19fa0bded2e443c (diff) | |
Diffstat (limited to 'bindings/python/tests/cindex/test_cursor_kind.py')
| -rw-r--r-- | bindings/python/tests/cindex/test_cursor_kind.py | 8 | 
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 bdfa31855835..d7a1cfad8f94 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 | 
