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/callback_deletes_breakpoints/TestCallbackDeletesBreakpoints.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
--- TestCallbackDeletesBreakpoints.py 2025-10-14 22:57:23.000000 +0000
+++ TestCallbackDeletesBreakpoints.py 2025-10-14 23:11:39.389607 +0000
@@ -29,12 +29,14 @@
)
# Now set a breakpoint on "I did something" several times
#
bkpt_numbers = []
- for idx in range(0,5):
- bkpt_numbers.append(lldbutil.run_break_set_by_source_regexp(self,
"// Deletable location"))
+ for idx in range(0, 5):
+ bkpt_numbers.append(
+ lldbutil.run_break_set_by_source_regexp(self, "// Deletable
location")
+ )
# And add commands to the third one to delete two others:
deleter = target.FindBreakpointByID(bkpt_numbers[2])
self.assertTrue(deleter.IsValid(), "Deleter is a good breakpoint")
commands = lldb.SBStringList()
@@ -49,15 +51,15 @@
stop_data = thread.stop_reason_data
# There are 5 breakpoints so 10 break_id, break_loc_id.
self.assertEqual(len(stop_data), 10)
# We should have been able to get break ID's and locations for all the
# breakpoints that we originally hit, but some won't be around anymore:
- for idx in range(0,5):
- bkpt_id = stop_data[idx*2]
+ for idx in range(0, 5):
+ bkpt_id = stop_data[idx * 2]
print(f"{idx}: {bkpt_id}")
self.assertIn(bkpt_id, bkpt_numbers, "Found breakpoints are right")
- loc_id = stop_data[idx*2 + 1]
+ loc_id = stop_data[idx * 2 + 1]
self.assertEqual(loc_id, 1, "All breakpoints have one location")
bkpt = target.FindBreakpointByID(bkpt_id)
if bkpt_id in deleted_ids:
# Looking these up should be an error:
self.assertFalse(bkpt.IsValid(), "Deleted breakpoints are
deleted")
``````````
</details>
https://github.com/llvm/llvm-project/pull/163471
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits