diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-04-26 00:30:51 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-04-26 00:30:51 +0000 |
commit | ea1b479a816650242999f4c19401d201f6160047 (patch) | |
tree | e9dc50c0a309dea46fa50e6fab56ebb5f581b990 | |
parent | b52657606572740359ead8b6892d744a05e9dc2c (diff) | |
parent | a60186ace420d6d8077fde164d048387a69dd6d7 (diff) | |
download | pyeclib-ea1b479a816650242999f4c19401d201f6160047.tar.gz |
Merge "Add explicit info for immeasurable throughput"
-rw-r--r-- | test/test_pyeclib_c.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/test_pyeclib_c.py b/test/test_pyeclib_c.py index f505a54..04e2444 100644 --- a/test/test_pyeclib_c.py +++ b/test/test_pyeclib_c.py @@ -148,7 +148,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() @@ -291,7 +290,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 |