diff options
author | Zachary Turner <zturner@google.com> | 2015-11-06 21:37:21 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2015-11-06 21:37:21 +0000 |
commit | 5821f7971429f94faaf35757b4e029326f1c53da (patch) | |
tree | 16712b2c43a912afec80f1f26ac3d7cd81181a11 /lldb/packages/Python/lldbsuite | |
parent | 059e52c44ceda28ca21a0299bb171cad2da0bc4c (diff) | |
download | bcm5719-llvm-5821f7971429f94faaf35757b4e029326f1c53da.tar.gz bcm5719-llvm-5821f7971429f94faaf35757b4e029326f1c53da.zip |
Python 3 - Use the exec function, not the exec statement.
exec statement is gone in Python 3, this version works in both.
llvm-svn: 252347
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/dump_dynamic/TestDumpDynamic.py | 4 | ||||
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lldbinline.py | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/dump_dynamic/TestDumpDynamic.py b/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/dump_dynamic/TestDumpDynamic.py index 59320a1a6ff..8ae09d69194 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/dump_dynamic/TestDumpDynamic.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/dump_dynamic/TestDumpDynamic.py @@ -1,3 +1,5 @@ -import lldbsuite.test.lldbinline as lldbinline +from __future__ import absolute_import + +from lldbsuite.test import lldbinline lldbinline.MakeInlineTest(__file__, globals(), [lldbinline.expectedFailureWindows("llvm.org/pr24663")]) diff --git a/lldb/packages/Python/lldbsuite/test/lldbinline.py b/lldb/packages/Python/lldbsuite/test/lldbinline.py index e27cb156f05..67a5e817970 100644 --- a/lldb/packages/Python/lldbsuite/test/lldbinline.py +++ b/lldb/packages/Python/lldbsuite/test/lldbinline.py @@ -141,7 +141,7 @@ class InlineTest(TestBase): self.do_test() def execute_user_command(self, __command): - exec __command in globals(), locals() + exec(__command, globals(), locals()) def do_test(self): exe_name = "a.out" |