summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKota Tsuyuzaki <tsuyuzaki.kota@lab.ntt.co.jp>2016-12-20 22:46:58 -0800
committerKota Tsuyuzaki <tsuyuzaki.kota@lab.ntt.co.jp>2016-12-20 22:56:13 -0800
commita60186ace420d6d8077fde164d048387a69dd6d7 (patch)
tree448bea6efddc65a5addf76c7e29b1f412b1823d5
parentee6e409d835f2ca4a3e0c7757761a8f2ebd680ed (diff)
downloadpyeclib-a60186ace420d6d8077fde164d048387a69dd6d7.tar.gz
Add explicit info for immeasurable throughput
And remove an unnecessary assignment Change-Id: I81e124ebf761a943e75bf9568085668362b7c50e
-rw-r--r--test/test_pyeclib_c.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/test_pyeclib_c.py b/test/test_pyeclib_c.py
index 0395e21..8eb9275 100644
--- a/test/test_pyeclib_c.py
+++ b/test/test_pyeclib_c.py
@@ -147,7 +147,6 @@ class TestPyECLib(unittest.TestCase):
:return average encode time
"""
timer = Timer()
- tsum = 0
handle = pyeclib_c.init(num_data, num_parity, ec_type, hd)
whole_file_bytes = self.get_tmp_file(file_size).read()
@@ -290,7 +289,7 @@ class TestPyECLib(unittest.TestCase):
size = float(size_desc[0])
if avg_time == 0:
- return '?'
+ return '? (test finished too fast to calculate throughput)'
if size_desc[1] == 'M':
throughput = size / avg_time