summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py b/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py
index f567ce7fded..69a45506110 100644
--- a/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py
+++ b/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py
@@ -316,7 +316,10 @@ class APIDefaultConstructorTestCase(TestBase):
obj = lldb.SBTypeList()
if self.TraceOn():
print obj
- self.assertTrue(obj)
+ # SBTypeList does not have IsValid() method defined. It's always valid
+ # in a sense. So the Python's truth value testing in turn delegates to
+ # __len__() method, which is defined for SBTypeList, and returns 0.
+ self.assertFalse(obj)
@python_api_test
def test_SBValue(self):
OpenPOWER on IntegriCloud