]> granicus.if.org Git - clang/commitdiff
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@288582 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 6c8230d4283c450923969a80cc4ac8c96529f46c..8103e96df4f9e173019640d6a438d821e2b502c2 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 70748429094ae2e118b5d57a01020554b179cf46..688b5c1c900e2229e79fff942d654de8e31bcdaf 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