[asterisk-commits] russell: testsuite/asterisk/trunk r182 - in /asterisk/trunk/tests: ami-login/...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Apr 2 13:15:05 CDT 2010


Author: russell
Date: Fri Apr  2 13:15:01 2010
New Revision: 182

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=182
Log:
Use format() in a couple more places

Modified:
    asterisk/trunk/tests/ami-login/run-test
    asterisk/trunk/tests/iax-call-basic/run-test

Modified: asterisk/trunk/tests/ami-login/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/ami-login/run-test?view=diff&rev=182&r1=181&r2=182
==============================================================================
--- asterisk/trunk/tests/ami-login/run-test (original)
+++ asterisk/trunk/tests/ami-login/run-test Fri Apr  2 13:15:01 2010
@@ -46,7 +46,7 @@
         self.last_step = step
 
     def on_error(self, ami):
-        print "ERROR, Last Step: %s" % self.last_step
+        print "ERROR, Last Step: {0}".format(self.last_step)
         reactor.stop()
         self.stop_asterisk()
 

Modified: asterisk/trunk/tests/iax-call-basic/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/iax-call-basic/run-test?view=diff&rev=182&r1=181&r2=182
==============================================================================
--- asterisk/trunk/tests/iax-call-basic/run-test (original)
+++ asterisk/trunk/tests/iax-call-basic/run-test Fri Apr  2 13:15:01 2010
@@ -54,7 +54,7 @@
     def fastagi_func(self, agi):
         sequence = fastagi.InSequence()
         def get_channel(c):
-            print "Connection received for %s ..." % c
+            print "Connection received for {0} ...".format(c)
             if c.split("-")[0] == "IAX2/127.0.0.1:4569":
                 self.chan1_connected = True
             elif c.split("-")[0] == "IAX2/127.0.0.1:4570":




More information about the asterisk-commits mailing list