Use new string formatting operations in assert messages to simplify things.

llvm-svn: 130325
This commit is contained in:
Johnny Chen 2011-04-27 19:52:41 +00:00
parent 9808d31b9e
commit f6c61a34bf
1 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ class LLDBIteratorTestCase(TestBase):
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 @@ class LLDBIteratorTestCase(TestBase):
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__':