forked from OSchip/llvm-project
Use new string formatting operations in assert messages to simplify things.
llvm-svn: 130325
This commit is contained in:
parent
9808d31b9e
commit
f6c61a34bf
|
|
@ -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__':
|
||||
|
|
|
|||
Loading…
Reference in New Issue