diff options
| author | Zachary Turner <zturner@google.com> | 2015-10-21 17:48:52 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2015-10-21 17:48:52 +0000 |
| commit | 814236d6947dfcc4773517449da1e626e0472d3c (patch) | |
| tree | 1cd1682d36b89654f22cc948a9d347142be1f0ca /lldb/test/python_api | |
| parent | c96d0dd431638464173794abbded3b9afe1841f2 (diff) | |
| download | bcm5719-llvm-814236d6947dfcc4773517449da1e626e0472d3c.tar.gz bcm5719-llvm-814236d6947dfcc4773517449da1e626e0472d3c.zip | |
Use six to portably handle module renames in Python 2 and 3
llvm-svn: 250915
Diffstat (limited to 'lldb/test/python_api')
| -rw-r--r-- | lldb/test/python_api/frame/TestFrames.py | 6 |
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. |

