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 
32dd5b20973bde1ef77fa3b84b9f85788a1a303a...4d53ea53a9a5d9344d41195697b3b98359af1ede
 lldb/test/API/functionalities/executable_first/TestExecutableFirst.py
``````````

</details>

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

``````````diff
--- TestExecutableFirst.py      2024-01-16 22:33:29.000000 +0000
+++ TestExecutableFirst.py      2024-01-16 22:45:18.856094 +0000
@@ -20,27 +20,31 @@
         lib = self.getBuildArtifact(lib_name)
 
         target = self.dbg.CreateTarget(None)
         module = target.AddModule(lib, None, None)
         self.assertTrue(module.IsValid(), "Added the module for the library")
-        
+
         module = target.AddModule(exe, None, None)
         self.assertTrue(module.IsValid(), "Added the executable module")
 
-       # This is the executable module so it should be the first in the list:
+        # This is the executable module so it should be the first in the list:
         first_module = target.GetModuleAtIndex(0)
         print("This is the first test, this one succeeds")
         self.assertEqual(module, first_module, "This executable is the first 
module")
 
         # The executable property is an SBFileSpec to the executable.  Make 
sure
         # that is also right:
         executable_module = target.executable
-        self.assertEqual(first_module.file, executable_module, "Python 
property is also our module")
+        self.assertEqual(
+            first_module.file, executable_module, "Python property is also our 
module"
+        )
 
     def test_executable_is_first_during_run(self):
         self.build()
-        (target, process, thread, bkpt) = 
lldbutil.run_to_source_breakpoint(self, "break after function call", 
lldb.SBFileSpec("main.cpp"))
-        
+        (target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint(
+            self, "break after function call", lldb.SBFileSpec("main.cpp")
+        )
+
         first_module = target.GetModuleAtIndex(0)
         self.assertTrue(first_module.IsValid(), "We have at least one module")
         executable_module = target.executable
         self.assertEqual(first_module.file, executable_module, "They are the 
same")

``````````

</details>


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

Reply via email to