summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-04-27 19:52:41 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-04-27 19:52:41 +0000
commitf6c61a34bf324702444aa3cdfabfd67a39e43fb9 (patch)
treec43e0a006f292ddd938894e5947bdec1d5c0b157 /lldb/test/python_api
parent9808d31b9ee3d08386f2e5e07c43e4f5a9d986ae (diff)
downloadbcm5719-llvm-f6c61a34bf324702444aa3cdfabfd67a39e43fb9.tar.gz
bcm5719-llvm-f6c61a34bf324702444aa3cdfabfd67a39e43fb9.zip
Use new string formatting operations in assert messages to simplify things.
llvm-svn: 130325
Diffstat (limited to 'lldb/test/python_api')
-rw-r--r--lldb/test/python_api/lldbutil/TestLLDBIterator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/test/python_api/lldbutil/TestLLDBIterator.py b/lldb/test/python_api/lldbutil/TestLLDBIterator.py
index f9228637909..c3bbd9a0f8c 100644
--- a/lldb/test/python_api/lldbutil/TestLLDBIterator.py
+++ b/lldb/test/python_api/lldbutil/TestLLDBIterator.py
@@ -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__':
OpenPOWER on IntegriCloud