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/commands/gui/console-output/TestGuiConsoleOutput.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
--- TestGuiConsoleOutput.py     2026-01-24 16:48:58.000000 +0000
+++ TestGuiConsoleOutput.py     2026-01-25 20:04:48.050048 +0000
@@ -17,32 +17,32 @@
     def test_gui_console_output(self):
         """Test that console pane prints messages"""
         self.build()
 
         self.launch(
-            executable=self.getBuildArtifact("a.out"), 
+            executable=self.getBuildArtifact("a.out"),
             dimensions=(100, 500),
-            run_under=["env", "TERM=xterm"]
+            run_under=["env", "TERM=xterm"],
         )
-        
+
         self.expect(
             'br set -o true -f main.cpp -p "// break here begin"',
             substrs=["Breakpoint 1", "address ="],
         )
-        
+
         self.expect(
             'br set -o true -f main.cpp -p "// break here end"',
             substrs=["Breakpoint 2", "address ="],
         )
-        
+
         self.expect("run", substrs=["stop reason ="])
 
         escape_key = chr(27).encode()
 
         # Start the GUI.
         self.child.sendline("gui")
-        
+
         # Check for gui elements in Menu bar (top of screen)
         # We expect these in the order they appear to avoid consumption issues
         self.child.expect_exact("Target")
         self.child.expect_exact("Process")
         self.child.expect_exact("View")
@@ -53,11 +53,11 @@
 
         # The Console window show this message before continuing
         self.child.expect_exact("(no output yet)")
 
         # Continue program execution
-        self.child.send('c')
+        self.child.send("c")
 
         # Check console output for messages
         self.child.expect_exact("Hello from stdout line 1")
         self.child.expect_exact("Hello from stderr line 1")
         self.child.expect_exact("Hello from stdout line 2")
@@ -80,57 +80,57 @@
     def test_gui_console_navigate(self):
         """Test that console pane navigation works"""
         self.build()
 
         self.launch(
-            executable=self.getBuildArtifact("a.out"), 
+            executable=self.getBuildArtifact("a.out"),
             dimensions=(100, 500),
-            run_under=["env", "TERM=xterm"]
+            run_under=["env", "TERM=xterm"],
         )
-        
+
         self.expect(
             'br set -o true -f main.cpp -p "// break here begin"',
             substrs=["Breakpoint 1", "address ="],
         )
-        
+
         self.expect(
             'br set -o true -f main.cpp -p "// break here end"',
             substrs=["Breakpoint 2", "address ="],
         )
-        
+
         self.expect("run", substrs=["stop reason ="])
 
         escape_key = chr(27).encode()
-        tab_key    = chr(9).encode()
+        tab_key = chr(9).encode()
 
         # Start the GUI.
         self.child.sendline("gui")
-        
+
         # Match elements in top-to-bottom order
         self.child.expect_exact("Target")
         self.child.expect_exact("Sources")
         self.child.expect_exact("Console")
 
         # The Console window show this message before continuing
         self.child.expect_exact("(no output yet)")
 
         # Continue program execution
-        self.child.send('c')
+        self.child.send("c")
 
         # Check console output for messages
         self.child.expect_exact("Hello from stdout line 1")
 
         # Wait for Breakpoint 2
         self.child.expect_exact("stop reason")
 
         # Tab to console
-        self.child.send(tab_key) # Sources -> Threads
-        self.child.send(tab_key) # Threads -> Variables
-        self.child.send(tab_key) # Variables -> Console
+        self.child.send(tab_key)  # Sources -> Threads
+        self.child.send(tab_key)  # Threads -> Variables
+        self.child.send(tab_key)  # Variables -> Console
 
         # Clear Console output
-        self.child.send('c')
+        self.child.send("c")
 
         # The Console window show this message after clear
         self.child.expect_exact("(no output yet)")
 
         # Press escape to quit the gui

``````````

</details>


https://github.com/llvm/llvm-project/pull/177160
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to