[libcxx-commits] [libcxx] [libcxx][lit] Fixing libcxx test failures on Windows (PR #194752)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Apr 28 19:47:30 PDT 2026


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {darker}-->


:warning: Python code formatter, darker found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
darker --check --diff -r origin/main...HEAD libcxx/test/selftest/dsl/dsl.sh.py libcxx/utils/libcxx/test/features/localization.py
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- test/selftest/dsl/dsl.sh.py	2026-04-29 02:45:36.000000 +0000
+++ test/selftest/dsl/dsl.sh.py	2026-04-29 02:46:57.492357 +0000
@@ -158,11 +158,13 @@
     def test_valid_program_returns_output_newline_handling(self):
         source = """
         #include <cstdio>
         int main(int, char**) { std::printf("FOOBAR\\n"); return 0; }
         """
-        self.assertEqual(dsl.programOutput(self.config, source), "FOOBAR%s" % os.linesep)
+        self.assertEqual(
+            dsl.programOutput(self.config, source), "FOOBAR%s" % os.linesep
+        )
 
     def test_valid_program_returns_no_output(self):
         source = """
         int main(int, char**) { return 0; }
         """

``````````

</details>


https://github.com/llvm/llvm-project/pull/194752


More information about the libcxx-commits mailing list