diff --git a/lldb/packages/Python/lldbsuite/test/decorators.py b/lldb/packages/Python/lldbsuite/test/decorators.py index a391319ca9b0e..a5f58373ede75 100644 --- a/lldb/packages/Python/lldbsuite/test/decorators.py +++ b/lldb/packages/Python/lldbsuite/test/decorators.py @@ -1155,6 +1155,7 @@ def skipIfBuildType(types: list[str]): """ types = [name.lower() for name in types] return unittest.skipIf( - configuration.cmake_build_type.lower() in types, + configuration.cmake_build_type is not None + and configuration.cmake_build_type.lower() in types, "skip on {} build type(s)".format(", ".join(types)), )