[Lldb-commits] [lldb] [lldb] Fix API test for file redirection to existing files (PR #114119)
via lldb-commits
lldb-commits at lists.llvm.org
Tue Oct 29 12:58:18 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 8a0cb9ac869334fd6c6bd6aad8408623a7ccd7f6...dfa32524d1e6cac75471975de1e2a28225efce83 lldb/test/API/python_api/process/io/TestProcessIO.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- TestProcessIO.py 2024-10-29 19:50:36.000000 +0000
+++ TestProcessIO.py 2024-10-29 19:57:49.554558 +0000
@@ -129,11 +129,11 @@
f.write(placeholder)
f.close()
f = open(self.error_file, "w")
f.write(placeholder)
f.close()
-
+
self.redirect_stdout()
self.redirect_stderr()
self.run_process(True)
output = self.read_output_file_and_delete()
error = self.read_error_file_and_delete()
``````````
</details>
https://github.com/llvm/llvm-project/pull/114119
More information about the lldb-commits
mailing list