X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/62be7d11e2b54d06e4d0c7c6ae12656bfe00637f..9d706659aa362728270f02b7d18d12b1f68f3e36:/sdk/python/tests/test_cache.py diff --git a/sdk/python/tests/test_cache.py b/sdk/python/tests/test_cache.py index 02a8817f2a..259acd0a30 100644 --- a/sdk/python/tests/test_cache.py +++ b/sdk/python/tests/test_cache.py @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + from __future__ import print_function from __future__ import absolute_import @@ -37,8 +41,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