[Lldb-commits] [lldb] [lldb][test] Fix the test TestArrayFromStdModule.py (PR #112485)

via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 15 23:43:03 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 3860e29e0e743c5f411c3023396d1ea07c28da7d...4736ff60f79352f2f9f703eced07c3555fef8a63 lldb/test/API/commands/expression/import-std-module/array/TestArrayFromStdModule.py
``````````

</details>

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

``````````diff
--- TestArrayFromStdModule.py	2024-10-16 06:37:37.000000 +0000
+++ TestArrayFromStdModule.py	2024-10-16 06:42:33.888153 +0000
@@ -51,11 +51,11 @@
 
         self.expect_expr("*a.begin()", result_type=value_type, result_value="3")
         self.expect_expr("*a.rbegin()", result_type="int", result_value="2")
 
         # This check may fail because of compiler optimizations.
-        #self.expect_expr("a.at(0)", result_type=value_type, result_value="3")
+        # self.expect_expr("a.at(0)", result_type=value_type, result_value="3")
 
         # Same again with an array that has an element type from debug info.
         array_type = "std::array<DbgInfo, 1>"
 
         dbg_info_elem_children = [ValueCheck(value="4")]
@@ -87,8 +87,8 @@
         self.expect_expr(
             "*b.rbegin()", result_type="DbgInfo", result_children=dbg_info_elem_children
         )
 
         # This check may fail because of compiler optimizations.
-        #self.expect_expr(
+        # self.expect_expr(
         #    "b.at(0)", result_type=value_type, result_children=dbg_info_elem_children
-        #)
+        # )

``````````

</details>


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


More information about the lldb-commits mailing list