[PATCH] D141248: [Clang] [Python] Fix tests when default config file contains -include
Sam James via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 8 23:10:21 PST 2023
thesamesam updated this revision to Diff 487296.
thesamesam added a comment.
Add comment.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141248/new/
https://reviews.llvm.org/D141248
Files:
clang/bindings/python/tests/cindex/util.py
Index: clang/bindings/python/tests/cindex/util.py
===================================================================
--- clang/bindings/python/tests/cindex/util.py
+++ clang/bindings/python/tests/cindex/util.py
@@ -77,6 +77,9 @@
return cursors
+# Avoid configurations including '-include' from interfering with
+# our tests.
+os.environ["CLANG_NO_DEFAULT_CONFIG"] = "1"
skip_if_no_fspath = unittest.skipUnless(HAS_FSPATH,
"Requires file system path protocol / Python 3.6+")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141248.487296.patch
Type: text/x-patch
Size: 528 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230109/fad51441/attachment.bin>
More information about the cfe-commits
mailing list