You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rh...@apache.org on 2010/02/23 12:53:45 UTC

svn commit: r915293 - /qpid/trunk/qpid/python/qpid-python-test

Author: rhs
Date: Tue Feb 23 11:53:44 2010
New Revision: 915293

URL: http://svn.apache.org/viewvc?rev=915293&view=rev
Log:
fixed divide by zero when no tests match

Modified:
    qpid/trunk/qpid/python/qpid-python-test

Modified: qpid/trunk/qpid/python/qpid-python-test
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/python/qpid-python-test?rev=915293&r1=915292&r2=915293&view=diff
==============================================================================
--- qpid/trunk/qpid/python/qpid-python-test (original)
+++ qpid/trunk/qpid/python/qpid-python-test Tue Feb 23 11:53:44 2010
@@ -575,7 +575,7 @@
     print " -- (halted after %s)" % run
   else:
     print
-  if opts.time:
+  if opts.time and run > 0:
     print colorize("Timing:", 1),
     timing = [colorize_word("elapsed", "%.2fs elapsed" % (end - start)),
               colorize_word("average", "%.2fs average" % ((end - start)/run))]



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org