[Lldb-commits] [lldb] [lldb][test] Fix language note tests on Windows (PR #162995)
via lldb-commits
lldb-commits at lists.llvm.org
Sat Oct 11 05:01:04 PDT 2025
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 lldb/test/API/commands/expression/diagnostics/TestExprDiagnostics.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
--- TestExprDiagnostics.py 2025-10-11 11:56:19.000000 +0000
+++ TestExprDiagnostics.py 2025-10-11 12:00:39.110758 +0000
@@ -216,13 +216,11 @@
details = diags.GetValueForKey("details")
# Detail 1/3: note: requested expression language
diag = details.GetItemAtIndex(0)
self.assertEqual(str(diag.GetValueForKey("severity")), "note")
- self.assertIn(
- "Ran expression as 'C++", str(diag.GetValueForKey("message"))
- )
+ self.assertIn("Ran expression as 'C++", str(diag.GetValueForKey("message")))
self.assertIn(
"Ran expression as 'C++", str(diag.GetValueForKey("rendered"))
)
self.assertEqual(str(diag.GetValueForKey("source_location")), "")
self.assertEqual(str(diag.GetValueForKey("file")), "")
``````````
</details>
https://github.com/llvm/llvm-project/pull/162995
More information about the lldb-commits
mailing list