[Lldb-commits] [lldb] [lldb] do not show misleading error when there is no frame (PR #119103)

via lldb-commits lldb-commits at lists.llvm.org
Sat Dec 7 16:51:40 PST 2024


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 66f9448b4b14a117141a3efd014e1240b30b741f...64966cd9ede9cf0ba9f1275bfaa34e91d2688081 lldb/test/API/python_api/run_locker/TestRunLocker.py
``````````

</details>

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

``````````diff
--- TestRunLocker.py	2024-12-08 00:47:24.000000 +0000
+++ TestRunLocker.py	2024-12-08 00:51:15.157057 +0000
@@ -105,8 +105,6 @@
         result = lldb.SBCommandReturnObject()
         ret = interp.HandleCommand(
             "script var = lldb.frame.EvaluateExpression('SomethingToCall()'); var.GetError().GetCString()",
             result,
         )
-        self.assertIn(
-            "sbframe object is not valid", result.GetOutput()
-        )
+        self.assertIn("sbframe object is not valid", result.GetOutput())

``````````

</details>


https://github.com/llvm/llvm-project/pull/119103


More information about the lldb-commits mailing list