[Lldb-commits] [lldb] r356370 - Fix TestCommandScriptImmediateOutput for python3

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Mon Mar 18 07:13:12 PDT 2019


Author: labath
Date: Mon Mar 18 07:13:12 2019
New Revision: 356370

URL: http://llvm.org/viewvc/llvm-project?rev=356370&view=rev
Log:
Fix TestCommandScriptImmediateOutput for python3

s/iteritems/items

Modified:
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/command_script_immediate_output/TestCommandScriptImmediateOutput.py

Modified: lldb/trunk/packages/Python/lldbsuite/test/functionalities/command_script_immediate_output/TestCommandScriptImmediateOutput.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/command_script_immediate_output/TestCommandScriptImmediateOutput.py?rev=356370&r1=356369&r2=356370&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/command_script_immediate_output/TestCommandScriptImmediateOutput.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/command_script_immediate_output/TestCommandScriptImmediateOutput.py Mon Mar 18 07:13:12 2019
@@ -66,7 +66,7 @@ class CommandScriptImmediateOutputTestCa
         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 CommandScriptImmediateOutputTestCa
         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 CommandScriptImmediateOutputTestCa
 
         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)




More information about the lldb-commits mailing list