diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2010-02-23 11:53:44 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2010-02-23 11:53:44 +0000 |
| commit | 27f0d3d1eadb702d6d12449a0418ab26b01beb00 (patch) | |
| tree | cad9b0a1b9005ee0d0cb89c60473ce6e2e1c9a1e /qpid/python | |
| parent | 79f38b492f65dd5720991a29a59e1ff518f8b68e (diff) | |
| download | qpid-python-27f0d3d1eadb702d6d12449a0418ab26b01beb00.tar.gz | |
fixed divide by zero when no tests match
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@915293 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
| -rwxr-xr-x | qpid/python/qpid-python-test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/python/qpid-python-test b/qpid/python/qpid-python-test index cf6007cd79..a47f633565 100755 --- a/qpid/python/qpid-python-test +++ b/qpid/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))] |
