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/breakpoint/breakpoint_conditions/TestBreakpointConditions.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
--- TestBreakpointConditions.py 2026-02-13 20:17:40.000000 +0000
+++ TestBreakpointConditions.py 2026-02-13 20:21:37.777512 +0000
@@ -266,29 +266,27 @@
# The hit count for the breakpoint should be 1.
self.assertEqual(breakpoint.GetHitCount(), 1)
def breakpoint_condition_changes(self):
target, process, thread, bkpt = lldbutil.run_to_source_breakpoint(
- self,
- "// a.1. -> b.1. -> c.1.",
- lldb.SBFileSpec("main.c"))
+ self, "// a.1. -> b.1. -> c.1.", lldb.SBFileSpec("main.c")
+ )
cond_bp = target.BreakpointCreateByName("a")
cond_bp.SetCondition("val == 1")
threads = lldbutil.continue_to_breakpoint(process, cond_bp)
self.assertEqual(len(threads), 1, "Hit one thread")
- self.assertEqual(threads[0].id, thread.id,"Hit our thread")
+ self.assertEqual(threads[0].id, thread.id, "Hit our thread")
val = thread.frames[0].FindVariable("val")
self.assertEqual(val.GetValueAsSigned(), 1, "val is right")
# Now change the condition, continue and make sure we hit it again:
cond_bp.SetCondition("val == 3")
threads = lldbutil.continue_to_breakpoint(process, cond_bp)
self.assertEqual(len(threads), 1, "Hit one thread")
- self.assertEqual(threads[0].id, thread.id,"Hit our thread")
+ self.assertEqual(threads[0].id, thread.id, "Hit our thread")
val = thread.frames[0].FindVariable("val")
self.assertEqual(val.GetValueAsSigned(), 3, "val is right")
-
``````````
</details>
https://github.com/llvm/llvm-project/pull/181414
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits