commit | c0923d501125724e6fc4161533d386b78c77191f | [log] [tgz] |
---|---|---|
author | Clint Byrum <clint@fewbar.com> | Wed May 10 15:47:41 2017 -0400 |
committer | Clint Byrum <clint@fewbar.com> | Fri May 19 06:45:30 2017 -0700 |
tree | 39bec43638520b07f1cc0dd6ce848905b3fc98e1 | |
parent | deaf1fc5648e7067ec398fea252db200976984a0 [diff] |
py3 hashlib error In python3 str isn't a valid type to pass to hashlib functions. Change-Id: I64d214088bf89a81ae1eff2ce5f9b81785f82546
diff --git a/tests/base.py b/tests/base.py index 2568ec8..c680389 100755 --- a/tests/base.py +++ b/tests/base.py
@@ -90,7 +90,7 @@ def random_sha1(): - return hashlib.sha1(str(random.random())).hexdigest() + return hashlib.sha1(str(random.random()).encode('ascii')).hexdigest() def iterate_timeout(max_seconds, purpose):