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 HEAD~1...HEAD
lldb/test/API/commands/target/stop-hooks/TestStopHookScripted.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- TestStopHookScripted.py 2025-06-05 23:42:55.000000 +0000
+++ TestStopHookScripted.py 2025-06-05 23:55:15.784789 +0000
@@ -64,15 +64,19 @@
"""Test that a scripted stop hook doesn't fire when the function does
not match"""
self.stop_hooks_scripted(0, "-I 0 -n main")
def test_stop_hooks_scripted_right_lines(self):
"""Test that a scripted stop hook fires when there is a function
match"""
- self.stop_hooks_scripted(5, "-I 0 -f main.c -l 1 -e %d" %
(self.main_start_line))
+ self.stop_hooks_scripted(
+ 5, "-I 0 -f main.c -l 1 -e %d" % (self.main_start_line)
+ )
def test_stop_hooks_scripted_wrong_lines(self):
"""Test that a scripted stop hook doesn't fire when the function does
not match"""
- self.stop_hooks_scripted(0, "-I 0 -f main.c -l %d -e 100" %
(self.main_start_line))
+ self.stop_hooks_scripted(
+ 0, "-I 0 -f main.c -l %d -e 100" % (self.main_start_line)
+ )
def test_stop_hooks_scripted_auto_continue(self):
"""Test that the --auto-continue flag works"""
self.do_test_auto_continue(False)
``````````
</details>
https://github.com/llvm/llvm-project/pull/143048
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits