summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/value/TestValueAPI.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/python_api/value/TestValueAPI.py')
-rw-r--r--lldb/test/python_api/value/TestValueAPI.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/test/python_api/value/TestValueAPI.py b/lldb/test/python_api/value/TestValueAPI.py
index 6659a2f926a..0d6d341bf0f 100644
--- a/lldb/test/python_api/value/TestValueAPI.py
+++ b/lldb/test/python_api/value/TestValueAPI.py
@@ -58,7 +58,7 @@ class ValueAPITestCase(TestBase):
# Get Frame #0.
self.assertTrue(process.GetState() == lldb.eStateStopped)
thread = lldbutil.get_stopped_thread(process, lldb.eStopReasonBreakpoint)
- self.assertTrue(thread != None, "There should be a thread stopped due to breakpoint condition")
+ self.assertTrue(thread.IsValid(), "There should be a thread stopped due to breakpoint condition")
frame0 = thread.GetFrameAtIndex(0)
# Get global variable 'days_of_week'.
OpenPOWER on IntegriCloud