[Lldb-commits] [lldb] [lldb/API] Fix SBStructuredData JSON Array parsing (PR #101929)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Aug 5 00:44:20 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 8d1b17b6623742ec4454f5bae2e23f8b30124314...54081f56181d954365f9ab762ca6715e28119ad4 lldb/test/API/python_api/sbstructureddata/TestStructuredDataAPI.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- TestStructuredDataAPI.py 2024-08-05 07:37:51.000000 +0000
+++ TestStructuredDataAPI.py 2024-08-05 07:43:53.182694 +0000
@@ -125,11 +125,10 @@
s.Clear()
self.assertSuccess(example.GetAsJSON(s))
sb_data = json.loads(s.GetData())
self.assertEqual(sb_data, example_arr)
-
def invalid_struct_test(self, example):
invalid_struct = lldb.SBStructuredData()
invalid_struct = example.GetValueForKey("invalid_key")
if invalid_struct.IsValid():
self.fail("An invalid object should have been returned")
``````````
</details>
https://github.com/llvm/llvm-project/pull/101929
More information about the lldb-commits
mailing list