Fixed test suite failure of test_SBTypeList().

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.

llvm-svn: 136985
This commit is contained in:
Johnny Chen 2011-08-05 21:55:15 +00:00
parent 9dd9b882ae
commit 7af935ed9a
1 changed files with 4 additions and 1 deletions

View File

@ -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):