[libclang] Fix python tests
authorSergey Kalinichev <kalinichev.so.0@gmail.com>
Sat, 3 Dec 2016 12:53:06 +0000 (12:53 +0000)
committerSergey Kalinichev <kalinichev.so.0@gmail.com>
Sat, 3 Dec 2016 12:53:06 +0000 (12:53 +0000)
It was broken in r286421

llvm-svn: 288582

clang/bindings/python/tests/cindex/test_cursor.py
clang/bindings/python/tests/cindex/test_tokens.py

index 6c8230d..8103e96 100644 (file)
@@ -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'
 
index 7074842..688b5c1 100644 (file)
@@ -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