================
@@ -45,9 +45,14 @@ def test_optimized_variable(self):
         self.continue_to_breakpoints(breakpoint_ids)
         optimized_variable = self.dap_server.get_local_variable("argc")
 
-        self.assertTrue(optimized_variable["value"].startswith("<error:"))
+        expected_value: str = optimized_variable["value"]
+        self.assertTrue(
+            expected_value.startswith("<error:"),
+            f"expect error for value: '{expected_value}'",
+        )
----------------
JDevlieghere wrote:

It's the _actual_ value, right, rather than the _expected_ value?
```suggestion
        value: str = optimized_variable["value"]
        self.assertTrue(
            value.startswith("<error:"),
            f"expect error for value: '{expected_value}'",
        )
```

https://github.com/llvm/llvm-project/pull/142030
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to