From 2494f555b612561fc8bd8a5a800fdbeb7941e668 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Wed, 20 Jul 2011 00:14:20 +0000 Subject: [PATCH] A more succinct assertTrue. llvm-svn: 135544 --- lldb/test/python_api/event/TestEvents.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lldb/test/python_api/event/TestEvents.py b/lldb/test/python_api/event/TestEvents.py index c758d24289e0..f1243f29e325 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()