[llvm-branch-commits] [clang] 25b3cf8 - Revert "[clang] workaround libclang-python windows CI failures (#207875)"
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Jul 7 08:57:57 PDT 2026
Author: Matheus Izvekov
Date: 2026-07-07T12:57:52-03:00
New Revision: 25b3cf8d67b9b4d9f015d09146e4283371c3175e
URL: https://github.com/llvm/llvm-project/commit/25b3cf8d67b9b4d9f015d09146e4283371c3175e
DIFF: https://github.com/llvm/llvm-project/commit/25b3cf8d67b9b4d9f015d09146e4283371c3175e.diff
LOG: Revert "[clang] workaround libclang-python windows CI failures (#207875)"
This reverts commit 52f1b754dddb740a553166acb9a5d40c38cc74e5.
Added:
Modified:
clang/bindings/python/tests/cindex/test_source_range.py
clang/bindings/python/tests/cindex/test_translation_unit.py
Removed:
################################################################################
diff --git a/clang/bindings/python/tests/cindex/test_source_range.py b/clang/bindings/python/tests/cindex/test_source_range.py
index 081f022353586..23589453d79d0 100644
--- a/clang/bindings/python/tests/cindex/test_source_range.py
+++ b/clang/bindings/python/tests/cindex/test_source_range.py
@@ -1,5 +1,4 @@
from pathlib import Path
-import os
from clang.cindex import SourceLocation, SourceRange, TranslationUnit
@@ -81,13 +80,9 @@ def test_contains(self):
],
)
- # FIXME: Fails on windows.
- if os.name != "nt":
- r_curly = create_range(tu2, 1, 11, 3, 1)
- l_f2 = SourceLocation.from_position(
- tu2, tu2.get_file("./numbers.inc"), 4, 1
- )
- assert l_f2 in r_curly
+ r_curly = create_range(tu2, 1, 11, 3, 1)
+ l_f2 = SourceLocation.from_position(tu2, tu2.get_file("./numbers.inc"), 4, 1)
+ assert l_f2 in r_curly
def test_equality(self):
path = INPUTS_DIR / "testfile.c"
diff --git a/clang/bindings/python/tests/cindex/test_translation_unit.py b/clang/bindings/python/tests/cindex/test_translation_unit.py
index d180be065f9a8..d43cebcef3310 100644
--- a/clang/bindings/python/tests/cindex/test_translation_unit.py
+++ b/clang/bindings/python/tests/cindex/test_translation_unit.py
@@ -97,9 +97,7 @@ def test_unsaved_files(self):
)
spellings = [c.spelling for c in tu.cursor.get_children()]
self.assertEqual(spellings[-2], "x")
- # FIXME: Fails on Windows.
- if os.name != "nt":
- self.assertEqual(spellings[-1], "y")
+ self.assertEqual(spellings[-1], "y")
def test_unsaved_files_2(self):
from io import StringIO
More information about the llvm-branch-commits
mailing list