diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-07-20 00:14:20 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-07-20 00:14:20 +0000 |
commit | 2494f555b612561fc8bd8a5a800fdbeb7941e668 (patch) | |
tree | fda00ce2512426fca6224db0fdcfabd9227ff3b4 /lldb/test/python_api/event/TestEvents.py | |
parent | e3daab244984230263ad771f1721a402a988d484 (diff) | |
download | bcm5719-llvm-2494f555b612561fc8bd8a5a800fdbeb7941e668.tar.gz bcm5719-llvm-2494f555b612561fc8bd8a5a800fdbeb7941e668.zip |
A more succinct assertTrue.
llvm-svn: 135544
Diffstat (limited to 'lldb/test/python_api/event/TestEvents.py')
-rw-r--r-- | lldb/test/python_api/event/TestEvents.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/test/python_api/event/TestEvents.py b/lldb/test/python_api/event/TestEvents.py index c758d24289e..f1243f29e32 100644 --- a/lldb/test/python_api/event/TestEvents.py +++ b/lldb/test/python_api/event/TestEvents.py @@ -150,8 +150,7 @@ class EventAPITestCase(TestBase): # Now launch the process, and do not stop at entry point. error = lldb.SBError() process = target.Launch (listener, None, None, None, None, None, None, 0, False, error) - self.assertTrue(error.Success()) - self.assertTrue(process, PROCESS_IS_VALID) + self.assertTrue(error.Success() and process, PROCESS_IS_VALID) # Get a handle on the process's broadcaster. broadcaster = process.GetBroadcaster() |