summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/frame/TestFrames.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/python_api/frame/TestFrames.py')
-rw-r--r--lldb/test/python_api/frame/TestFrames.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/test/python_api/frame/TestFrames.py b/lldb/test/python_api/frame/TestFrames.py
index 651921128c9..42fa8b9d1f4 100644
--- a/lldb/test/python_api/frame/TestFrames.py
+++ b/lldb/test/python_api/frame/TestFrames.py
@@ -3,6 +3,8 @@ Use lldb Python SBFrame API to get the argument values of the call stacks.
And other SBFrame API tests.
"""
+import lldb_shared
+
import os, time
import re
import unittest2
@@ -42,8 +44,8 @@ class FrameAPITestCase(TestBase):
# depth of 3 of the 'c' leaf function.
callsOfA = 0
- import StringIO
- session = StringIO.StringIO()
+ from six import StringIO as SixStringIO
+ session = SixStringIO()
while process.GetState() == lldb.eStateStopped:
thread = process.GetThreadAtIndex(0)
# Inspect at most 3 frames.
OpenPOWER on IntegriCloud