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 
1248698e9bb2a0232eee53a72679ed5077190a90...d5d772504b0fa993aad704d392a7eb02c9c717c1
 lldb/test/API/python_api/find_in_memory/TestFindInMemoryCore.py 
lldb/test/API/python_api/find_in_memory/TestFindInMemory.py 
lldb/test/API/python_api/find_in_memory/TestFindRangesInMemory.py 
lldb/test/API/python_api/find_in_memory/address_ranges_helper.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- TestFindInMemory.py 2024-08-08 20:32:32.000000 +0000
+++ TestFindInMemory.py 2024-08-08 21:03:17.957135 +0000
@@ -27,11 +27,13 @@
             lldb.SBFileSpec("main.cpp"),
         )
         live_pi.frame = live_pi.thread.GetFrameAtIndex(0)
         self.assertTrue(live_pi.bp.IsValid())
         self.assertTrue(live_pi.process, PROCESS_IS_VALID)
-        self.assertState(live_pi.process.GetState(), lldb.eStateStopped, 
PROCESS_STOPPED)
+        self.assertState(
+            live_pi.process.GetState(), lldb.eStateStopped, PROCESS_STOPPED
+        )
 
         self.live_pi = live_pi
 
     def test_check_stack_pointer(self):
         """Make sure the 'stack_pointer' variable lives on the stack"""
@@ -43,11 +45,13 @@
             ).Success(),
         )
 
         stack_region = lldb.SBMemoryRegionInfo()
         self.assertTrue(
-            
self.live_pi.process.GetMemoryRegionInfo(self.live_pi.frame.GetSP(), 
stack_region).Success(),
+            self.live_pi.process.GetMemoryRegionInfo(
+                self.live_pi.frame.GetSP(), stack_region
+            ).Success(),
         )
 
         self.assertEqual(variable_region, stack_region)
 
     def test_find_in_memory_ok(self):
--- TestFindRangesInMemory.py   2024-08-08 20:32:32.000000 +0000
+++ TestFindRangesInMemory.py   2024-08-08 21:03:18.070071 +0000
@@ -27,11 +27,13 @@
             lldb.SBFileSpec("main.cpp"),
         )
         live_pi.frame = live_pi.thread.GetFrameAtIndex(0)
         self.assertTrue(live_pi.bp.IsValid())
         self.assertTrue(live_pi.process, PROCESS_IS_VALID)
-        self.assertState(live_pi.process.GetState(), lldb.eStateStopped, 
PROCESS_STOPPED)
+        self.assertState(
+            live_pi.process.GetState(), lldb.eStateStopped, PROCESS_STOPPED
+        )
 
         self.live_pi = live_pi
 
     def test_find_ranges_in_memory_two_matches(self):
         """Make sure two matches exist in the heap memory and the right 
address ranges are provided"""

``````````

</details>


https://github.com/llvm/llvm-project/pull/102536
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to