summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-03-18 14:13:12 +0000
committerPavel Labath <pavel@labath.sk>2019-03-18 14:13:12 +0000
commit58e9ef139ddfe1b3a6d90deae1c432677a25ec56 (patch)
treef62833a195a399ad0d1c077f145cf6de3a78bb75 /lldb/packages/Python/lldbsuite
parent84de8a30a05a6e0b3685dda4f5dfdd973629504b (diff)
downloadbcm5719-llvm-58e9ef139ddfe1b3a6d90deae1c432677a25ec56.tar.gz
bcm5719-llvm-58e9ef139ddfe1b3a6d90deae1c432677a25ec56.zip
Fix TestCommandScriptImmediateOutput for python3
s/iteritems/items llvm-svn: 356370
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/command_script_immediate_output/TestCommandScriptImmediateOutput.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/command_script_immediate_output/TestCommandScriptImmediateOutput.py b/lldb/packages/Python/lldbsuite/test/functionalities/command_script_immediate_output/TestCommandScriptImmediateOutput.py
index c1595cf2551..bd7973e0dc3 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/command_script_immediate_output/TestCommandScriptImmediateOutput.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/command_script_immediate_output/TestCommandScriptImmediateOutput.py
@@ -66,7 +66,7 @@ class CommandScriptImmediateOutputTestCase (PExpectTest):
starter_string = 'Starter Garbage\n'
write_string = 'writing to file with mode: '
- for path, mode in test_files.iteritems():
+ for path, mode in test_files.items():
with open(path, 'w+') as init:
init.write(starter_string)
@@ -78,7 +78,7 @@ class CommandScriptImmediateOutputTestCase (PExpectTest):
self.sendline(
'command script add -f custom_command.write_file mywrite',
patterns=[prompt])
- for path, mode in test_files.iteritems():
+ for path, mode in test_files.items():
command = 'mywrite "' + path + '" ' + mode
self.sendline(command, patterns=[prompt])
@@ -87,7 +87,7 @@ class CommandScriptImmediateOutputTestCase (PExpectTest):
self.quit(gracefully=False)
- for path, mode in test_files.iteritems():
+ for path, mode in test_files.items():
with open(path, 'r') as result:
if mode in ['r', 'a', 'a+']:
self.assertEquals(result.readline(), starter_string)
OpenPOWER on IntegriCloud