Skip to content

Commit 22edb94

Browse files
committed
Fix formatting
Adapt global variable names
1 parent e303740 commit 22edb94

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -998,13 +998,14 @@ def test_pretty_print(self):
998998
self.assertEqual(f.pretty_printed(pp), "void f(_Bool x) {\n}\n")
999999

10001000
def test_hash(self):
1001-
def accumulate_cursors(cursor: Cursor, all_cursors: list[Cursor]):
1001+
1002+
def accumulate_cursors(cursor: Cursor, all_cursors: list):
10021003
all_cursors.append(cursor)
10031004
for child in cursor.get_children():
10041005
all_cursors = accumulate_cursors(child, all_cursors)
10051006
return all_cursors
10061007

1007-
tu = get_tu(kInput)
1008+
tu = get_tu(children_test)
10081009
all_cursors = accumulate_cursors(tu.cursor, [])
10091010
cursor_hashes = set()
10101011
for cursor in all_cursors:
@@ -1028,7 +1029,7 @@ def test_has_attrs(self):
10281029
self.assertFalse(B.get_definition().has_attrs())
10291030

10301031
def test_specialized_template(self):
1031-
tu = get_tu(kTemplateArgTest, lang="cpp")
1032+
tu = get_tu(template_arg_test, lang="cpp")
10321033
foos = get_cursors(tu, "foo")
10331034
prime_foo = foos[1].specialized_template
10341035

0 commit comments

Comments
 (0)