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/functionalities/multi-breakpoint/TestMultiBreakpoint.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
--- TestMultiBreakpoint.py      2026-04-20 08:26:23.000000 +0000
+++ TestMultiBreakpoint.py      2026-04-20 08:27:53.859414 +0000
@@ -7,11 +7,11 @@
 from lldbsuite.test.decorators import *
 from lldbsuite.test.lldbtest import *
 from lldbsuite.test import lldbutil
 
 
-@skipUnlessDarwin # Remove once lldbsever support is implemented.
+@skipUnlessDarwin  # Remove once lldbsever support is implemented.
 @skipIfOutOfTreeDebugserver
 class TestMultiBreakpoint(TestBase):
     def send_packet(self, packet_str):
         self.runCmd(f"process plugin packet send {packet_str}", check=False)
         output = self.res.GetOutput()
@@ -40,18 +40,25 @@
         """Assert a ';'-separated multi-response matches the expected pattern.
 
         Each element of `expected` is either "OK" for an exact match, or
         "error" to accept any error response (starting with 'E')."""
         parts = reply.split(";")
-        self.assertEqual(len(parts), len(expected),
-                         f"Expected {len(expected)} responses, got 
{len(parts)}: {reply}")
+        self.assertEqual(
+            len(parts),
+            len(expected),
+            f"Expected {len(expected)} responses, got {len(parts)}: {reply}",
+        )
         for i, (actual, exp) in enumerate(zip(parts, expected)):
             if exp == "OK":
-                self.assertEqual(actual, "OK", f"Response {i}: expected OK, 
got {actual}")
+                self.assertEqual(
+                    actual, "OK", f"Response {i}: expected OK, got {actual}"
+                )
             elif exp == "error":
-                self.assertTrue(actual.startswith("E"),
-                                f"Response {i}: expected error, got {actual}")
+                self.assertTrue(
+                    actual.startswith("E"),
+                    f"Response {i}: expected error, got {actual}",
+                )
             else:
                 self.fail(f"Bad expected value '{exp}' at index {i}")
 
     def get_function_address(self, name):
         """Return the hex address of a function as a string (no 0x prefix)."""

``````````

</details>


https://github.com/llvm/llvm-project/pull/192914
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to