From 75cb66e52f0b35b4b3bb0ca79608b8c31767fe28 Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Tue, 23 Feb 2010 11:53:44 +0000 Subject: fixed divide by zero when no tests match git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@915293 13f79535-47bb-0310-9956-ffa450edef68 --- python/qpid-python-test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/qpid-python-test') diff --git a/python/qpid-python-test b/python/qpid-python-test index cf6007cd79..a47f633565 100755 --- a/python/qpid-python-test +++ b/python/qpid-python-test @@ -575,7 +575,7 @@ if not list_only: 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))] -- cgit v1.2.1