[ARVADOS] updated: f6b16b5ae75469167dbea08d69692d5f53dd9c84
Git user
git at public.curoverse.com
Mon Apr 10 22:04:04 EDT 2017
Summary of changes:
sdk/python/tests/test_cache.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
via f6b16b5ae75469167dbea08d69692d5f53dd9c84 (commit)
from a603d0f7b685a93b88ea29336dd2b512e63b4508 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit f6b16b5ae75469167dbea08d69692d5f53dd9c84
Author: Tom Clegg <tom at curoverse.com>
Date: Mon Apr 10 22:04:00 2017 -0400
11308: Fix bytes vs. strings in test case.
diff --git a/sdk/python/tests/test_cache.py b/sdk/python/tests/test_cache.py
index 02a8817..9cf665b 100644
--- a/sdk/python/tests/test_cache.py
+++ b/sdk/python/tests/test_cache.py
@@ -37,8 +37,8 @@ class CacheTestThread(threading.Thread):
data_in = hashlib.md5(data_in).hexdigest().encode() + b"\n" + data_in
c.set(url, data_in)
data_out = c.get(url)
- digest, _, content = data_out.partition("\n")
- if digest != bytes(hashlib.md5(content).hexdigest()):
+ digest, _, content = data_out.partition(b"\n")
+ if digest != hashlib.md5(content).hexdigest().encode():
self.ok = False
except Exception as err:
self.ok = False
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list