diff --git a/clang/bindings/python/tests/cindex/test_translation_unit.py b/clang/bindings/python/tests/cindex/test_translation_unit.py --- a/clang/bindings/python/tests/cindex/test_translation_unit.py +++ b/clang/bindings/python/tests/cindex/test_translation_unit.py @@ -140,7 +140,7 @@ h3 = os.path.join(kInputsDir, "header3.h") inc = [(src, h1), (h1, h3), (src, h2), (h2, h3)] - tu = TranslationUnit.from_source(src) + tu = TranslationUnit.from_source(src, ["--no-default-config"]) for i in zip(inc, tu.get_includes()): eq(i[0], i[1]) @@ -151,7 +151,7 @@ h3 = os.path.join(kInputsDir, "header3.h") inc = [h1, h3, h2, h3, h1] - tu = TranslationUnit.from_source(src, options=TranslationUnit.PARSE_DETAILED_PROCESSING_RECORD) + tu = TranslationUnit.from_source(src, ["--no-default-config"], options=TranslationUnit.PARSE_DETAILED_PROCESSING_RECORD) inclusion_directive_files = [c.get_included_file().name for c in tu.cursor.get_children() if c.kind == CursorKind.INCLUSION_DIRECTIVE] for i in zip(inc, inclusion_directive_files): self.assert_normpaths_equal(i[0], i[1])