Index: lldb/packages/Python/lldbsuite/test/lang/cpp/scope/TestCppScope.py =================================================================== --- lldb/packages/Python/lldbsuite/test/lang/cpp/scope/TestCppScope.py +++ lldb/packages/Python/lldbsuite/test/lang/cpp/scope/TestCppScope.py @@ -79,9 +79,9 @@ "target variable returns wrong variable " + name) for name in global_variables_assert: - if name is "C::a" and not test_c: + if name == "C::a" and not test_c: continue - if name is not "C::a" and test_c: + if name != "C::a" and test_c: continue value = frame.EvaluateExpression(name)