[Lldb-commits] [lldb] [lldb][test] Add `pexpect` category for tests that `import pexpect` (PR #84860)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 11 18:18:34 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 2a3f27cce8983e5d6871b9ebb8f5e9dd91884f0c...b5e04eb49c89c8c654305c6ba5db5e2f237bccec lldb/packages/Python/lldbsuite/test/decorators.py lldb/packages/Python/lldbsuite/test/dotest.py lldb/packages/Python/lldbsuite/test/lldbpexpect.py lldb/packages/Python/lldbsuite/test/test_categories.py lldb/packages/Python/lldbsuite/test/test_result.py lldb/test/API/benchmarks/expression/TestExpressionCmd.py lldb/test/API/benchmarks/expression/TestRepeatedExprs.py lldb/test/API/benchmarks/frame_variable/TestFrameVariableResponse.py lldb/test/API/benchmarks/startup/TestStartupDelays.py lldb/test/API/benchmarks/stepping/TestSteppingSpeed.py lldb/test/API/benchmarks/turnaround/TestCompileRunToBreakpointTurnaround.py lldb/test/API/terminal/TestSTTYBeforeAndAfter.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- packages/Python/lldbsuite/test/test_result.py 2024-03-11 18:23:59.000000 +0000
+++ packages/Python/lldbsuite/test/test_result.py 2024-03-12 01:18:26.696261 +0000
@@ -158,11 +158,13 @@
return test_categories
def hardMarkAsSkipped(self, test):
getattr(test, test._testMethodName).__func__.__unittest_skip__ = True
- getattr(test, test._testMethodName).__func__.__unittest_skip_why__ = (
+ getattr(
+ test, test._testMethodName
+ ).__func__.__unittest_skip_why__ = (
"test case does not fall in any category of interest for this run"
)
def checkExclusion(self, exclusion_list, name):
if exclusion_list:
``````````
</details>
https://github.com/llvm/llvm-project/pull/84860
More information about the lldb-commits
mailing list