summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/interpreter
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-05-24 18:22:45 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-05-24 18:22:45 +0000
commit4ebd019b977b7d0bb5b9dc6fd10562e7a47c8de1 (patch)
tree7c017fb66ee57a8982cf69b765ffa0a1232b034e /lldb/test/python_api/interpreter
parent97019c709db572b78e5e60a0c4eb13a03de8b709 (diff)
downloadbcm5719-llvm-4ebd019b977b7d0bb5b9dc6fd10562e7a47c8de1.tar.gz
bcm5719-llvm-4ebd019b977b7d0bb5b9dc6fd10562e7a47c8de1.zip
Now that we have added a post-processing step for adding truth value testing to
those lldb objects which implement the IsValid() method, let's change the rest of the test suite to use the more compact truth value testing pattern (the Python way). llvm-svn: 131970
Diffstat (limited to 'lldb/test/python_api/interpreter')
-rw-r--r--lldb/test/python_api/interpreter/TestCommandInterpreterAPI.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/test/python_api/interpreter/TestCommandInterpreterAPI.py b/lldb/test/python_api/interpreter/TestCommandInterpreterAPI.py
index c448181f988..8620824005c 100644
--- a/lldb/test/python_api/interpreter/TestCommandInterpreterAPI.py
+++ b/lldb/test/python_api/interpreter/TestCommandInterpreterAPI.py
@@ -35,11 +35,11 @@ class CommandInterpreterAPICase(TestBase):
# Create a target by the debugger.
target = self.dbg.CreateTarget(exe)
- self.assertTrue(target.IsValid(), VALID_TARGET)
+ self.assertTrue(target, VALID_TARGET)
# Retrieve the associated command interpreter from our debugger.
ci = self.dbg.GetCommandInterpreter()
- self.assertTrue(ci.IsValid(), VALID_COMMAND_INTERPRETER)
+ self.assertTrue(ci, VALID_COMMAND_INTERPRETER)
# Exercise some APIs....
@@ -61,7 +61,7 @@ class CommandInterpreterAPICase(TestBase):
# Assigning to self.process so it gets cleaned up during test tear down.
self.process = ci.GetProcess()
- self.assertTrue(self.process.IsValid())
+ self.assertTrue(self.process)
import lldbutil
if self.process.GetState() != lldb.eStateStopped:
OpenPOWER on IntegriCloud