https://github.com/mizvekov created https://github.com/llvm/llvm-project/pull/208035
Reverts llvm/llvm-project#207875 DO NOT MERGE >From 25b3cf8d67b9b4d9f015d09146e4283371c3175e Mon Sep 17 00:00:00 2001 From: Matheus Izvekov <[email protected]> Date: Tue, 7 Jul 2026 12:57:52 -0300 Subject: [PATCH] Revert "[clang] workaround libclang-python windows CI failures (#207875)" This reverts commit 52f1b754dddb740a553166acb9a5d40c38cc74e5. --- .../bindings/python/tests/cindex/test_source_range.py | 11 +++-------- .../python/tests/cindex/test_translation_unit.py | 4 +--- 2 files changed, 4 insertions(+), 11 deletions(-) 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 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
