summaryrefslogtreecommitdiff
path: root/python/qpid-python-test
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2010-02-23 11:53:44 +0000
committerRafael H. Schloming <rhs@apache.org>2010-02-23 11:53:44 +0000
commit75cb66e52f0b35b4b3bb0ca79608b8c31767fe28 (patch)
tree4883f1d3e311cb45c655d2af41dc72d1b6cadc20 /python/qpid-python-test
parent2b17f838c2c7cdeb6ecbf9da98c9f76fdd5e7148 (diff)
downloadqpid-python-75cb66e52f0b35b4b3bb0ca79608b8c31767fe28.tar.gz
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
Diffstat (limited to 'python/qpid-python-test')
-rwxr-xr-xpython/qpid-python-test2
1 files changed, 1 insertions, 1 deletions
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))]