summaryrefslogtreecommitdiff
path: root/bindings
diff options
context:
space:
mode:
authorSergey Kalinichev <kalinichev.so.0@gmail.com>2016-12-03 12:53:06 +0000
committerSergey Kalinichev <kalinichev.so.0@gmail.com>2016-12-03 12:53:06 +0000
commit5cd7433511aa8f6434ddf5bd16428ccd0b4bffec (patch)
treeafec824052083c0bd8cefc20096552c4c5683c09 /bindings
parent012b8f13a36df5f78c62236cb3b3fc595eaa7e00 (diff)
[libclang] Fix python tests
It was broken in r286421 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@288582 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings')
-rw-r--r--bindings/python/tests/cindex/test_cursor.py2
-rw-r--r--bindings/python/tests/cindex/test_tokens.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/bindings/python/tests/cindex/test_cursor.py b/bindings/python/tests/cindex/test_cursor.py
index 6c8230d428..8103e96df4 100644
--- a/bindings/python/tests/cindex/test_cursor.py
+++ b/bindings/python/tests/cindex/test_cursor.py
@@ -375,7 +375,7 @@ def test_get_tokens():
foo = get_cursor(tu, 'foo')
tokens = list(foo.get_tokens())
- assert len(tokens) == 7
+ assert len(tokens) == 6
assert tokens[0].spelling == 'int'
assert tokens[1].spelling == 'foo'
diff --git a/bindings/python/tests/cindex/test_tokens.py b/bindings/python/tests/cindex/test_tokens.py
index 7074842909..688b5c1c90 100644
--- a/bindings/python/tests/cindex/test_tokens.py
+++ b/bindings/python/tests/cindex/test_tokens.py
@@ -14,7 +14,7 @@ def test_token_to_cursor():
r = tu.get_extent('t.c', (0, 9))
tokens = list(tu.get_tokens(extent=r))
- assert len(tokens) == 5
+ assert len(tokens) == 4
assert tokens[1].spelling == 'i'
assert tokens[1].kind == TokenKind.IDENTIFIER