[Lldb-commits] [lldb] [lldb][test] Add missing decorators import to TestSynthesizedPropertyAccessor (PR #224501)

Cyrus Ding via lldb-commits lldb-commits at lists.llvm.org
Thu Sep 17 20:02:46 PDT 2026


https://github.com/dingcyrus created https://github.com/llvm/llvm-project/pull/224501

The skipIf decorator added in #224468 lives in lldbsuite.test.decorators, which the test does not import, so importing the module fails with 'NameError: name skipIf is not defined'. This breaks check-lldb on main and on every open PR.

Add the standard 'from lldbsuite.test.decorators import *' import used by the other objc API tests.

>From 02aa538254755481ba9c0e58875726717658f580 Mon Sep 17 00:00:00 2001
From: Cyrus Ding <785101675 at qq.com>
Date: Fri, 18 Sep 2026 11:00:37 +0800
Subject: [PATCH] [lldb][test] Add missing decorators import to
 TestSynthesizedPropertyAccessor

The skipIf decorator added in #224468 lives in lldbsuite.test.decorators,
which the test does not import, so importing the module fails with
'NameError: name skipIf is not defined'. This breaks check-lldb on main
and on every open PR.

Add the standard 'from lldbsuite.test.decorators import *' import used
by the other objc API tests.
---
 .../TestSynthesizedPropertyAccessor.py                           | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lldb/test/API/lang/objc/synthesized-property-accessor/TestSynthesizedPropertyAccessor.py b/lldb/test/API/lang/objc/synthesized-property-accessor/TestSynthesizedPropertyAccessor.py
index 540e19e9071cf..e5774756f8937 100644
--- a/lldb/test/API/lang/objc/synthesized-property-accessor/TestSynthesizedPropertyAccessor.py
+++ b/lldb/test/API/lang/objc/synthesized-property-accessor/TestSynthesizedPropertyAccessor.py
@@ -3,6 +3,7 @@
 """
 
 import lldb
+from lldbsuite.test.decorators import *
 from lldbsuite.test.lldbtest import *
 from lldbsuite.test import lldbutil
 



More information about the lldb-commits mailing list