[Lldb-commits] [lldb] FormatManager::GetPossibleMatches assumes all ValueObjects have targets. (PR #93880)
via lldb-commits
lldb-commits at lists.llvm.org
Thu May 30 14:13:52 PDT 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 6abc3876c35bbe8fb5dd6435dc60f2c816b97ef6...007bab454cd9aa2c73ce167ee15900523d3b7318 lldb/test/API/python_api/run_locker/TestRunLocker.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- TestRunLocker.py 2024-05-30 20:48:02.000000 +0000
+++ TestRunLocker.py 2024-05-30 21:13:29.257160 +0000
@@ -85,11 +85,15 @@
# you aren't supposed to do while running, and that we get some
# actual error:
val = target.EvaluateExpression("SomethingToCall()")
# There was a bug [#93313] in the printing that would cause repr to crash, so I'm
# testing that separately.
- self.assertIn("can't evaluate expressions when the process is running", repr(val), "repr works")
+ self.assertIn(
+ "can't evaluate expressions when the process is running",
+ repr(val),
+ "repr works",
+ )
error = val.GetError()
self.assertTrue(error.Fail(), "Failed to run expression")
self.assertIn(
"can't evaluate expressions when the process is running",
error.GetCString(),
``````````
</details>
https://github.com/llvm/llvm-project/pull/93880
More information about the lldb-commits
mailing list