[Lldb-commits] [lldb] [lldb] Fix and re-enable TestUseSourceCache.py (PR #111237)

via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 10 15:04: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 1809d0fa1c15b16ca94381d8be3ef70c4a83c36b...ef848fd2c7de9483cfe2cb0286a20df0a2005f97 lldb/test/API/commands/settings/use_source_cache/TestUseSourceCache.py
``````````

</details>

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

``````````diff
--- TestUseSourceCache.py	2024-10-10 21:58:04.000000 +0000
+++ TestUseSourceCache.py	2024-10-10 22:03:32.727149 +0000
@@ -48,16 +48,18 @@
         # Try overwriting the source file.
         is_file_overwritten = self.overwriteFile(src)
 
         if is_cache_enabled:
             self.assertFalse(
-                is_file_overwritten, "Source cache is enabled, but writing to file succeeded"
+                is_file_overwritten,
+                "Source cache is enabled, but writing to file succeeded",
             )
 
         if not is_cache_enabled:
             self.assertTrue(
-                is_file_overwritten, "Source cache is disabled, but writing to file failed"
+                is_file_overwritten,
+                "Source cache is disabled, but writing to file failed",
             )
 
     def overwriteFile(self, src):
         """Write to file and return true iff file was successfully written."""
         try:

``````````

</details>


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


More information about the lldb-commits mailing list