Skip to content

Commit f0bc427

Browse files
committed
Fix test again
1 parent aff6bfe commit f0bc427

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,13 @@ def test_file_eq_failing_3(self):
7979

8080
def test_file_eq_failing_4(self):
8181
path = os.path.join(inputs_dir, "testfile.c")
82+
path_a = os.path.join(inputs_dir, "a.inc")
83+
path_b = os.path.join(inputs_dir, "b.inc")
8284
tu = TranslationUnit.from_source(path)
83-
file1 = File.from_name(tu, "testfile.c")
84-
file2 = File.from_name(tu, "a.c")
85-
file3 = File.from_name(tu, "b.c")
85+
print(tu.spelling, tu.cursor.spelling)
86+
file1 = File.from_name(tu, path)
87+
file2 = File.from_name(tu, path_a)
88+
file3 = File.from_name(tu, path_b)
8689
# FIXME: These files are not supposed to be equal
8790
self.assertEqual(file2, file3)
8891
self.assertEqual(file1, file2)

0 commit comments

Comments
 (0)