Ondřej Nový ee6e409d83 Prevent division by zero in tests
If avg_time is 0, tests will fail:
throughput = (size / 1000.0) / avg_time
ZeroDivisionError: float division by zero

This happens for me on Hurd:
https://buildd.debian.org/status/fetch.php?pkg=python-pyeclib&arch=hurd-i386&ver=1.3.1-1&stamp=1475967332

Change-Id: I0a7812977173b37918f40891f6ec0a2bc7c1d023
2016-12-15 16:37:14 +01:00
..