[Lldb-commits] [lldb] r130325 - /lldb/trunk/test/python_api/lldbutil/TestLLDBIterator.py

Johnny Chen johnny.chen at apple.com
Wed Apr 27 12:52:41 PDT 2011


Author: johnny
Date: Wed Apr 27 14:52:41 2011
New Revision: 130325

URL: http://llvm.org/viewvc/llvm-project?rev=130325&view=rev
Log:
Use new string formatting operations in assert messages to simplify things.

Modified:
    lldb/trunk/test/python_api/lldbutil/TestLLDBIterator.py

Modified: lldb/trunk/test/python_api/lldbutil/TestLLDBIterator.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/lldbutil/TestLLDBIterator.py?rev=130325&r1=130324&r2=130325&view=diff
==============================================================================
--- lldb/trunk/test/python_api/lldbutil/TestLLDBIterator.py (original)
+++ lldb/trunk/test/python_api/lldbutil/TestLLDBIterator.py Wed Apr 27 14:52:41 2011
@@ -60,7 +60,7 @@
                 print "yours[%d]='%s'" % (i, get_description(yours[i]))
                 print "mine[%d]='%s'" % (i, get_description(mine[i]))
             self.assertTrue(yours[i].GetUUIDString() == mine[i].GetUUIDString(),
-                            "UUID of yours[%d] and mine[%d] matches" % (i, i))
+                            "UUID of yours[{0}] and mine[{0}] matches".format(i))
 
     def lldb_iter_2(self):
         exe = os.path.join(os.getcwd(), "a.out")
@@ -89,7 +89,7 @@
                 print "yours[%d]='%s'" % (i, get_description(yours[i]))
                 print "mine[%d]='%s'" % (i, get_description(mine[i]))
             self.assertTrue(yours[i].GetID() == mine[i].GetID(),
-                            "ID of yours[%d] and mine[%d] matches" % (i, i))
+                            "ID of yours[{0}] and mine[{0}] matches".format(i))
 
 
 if __name__ == '__main__':





More information about the lldb-commits mailing list