X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f69e114cf6dbe51525e98ca30a52ef3dd4341167..3c87fb14f48b78d30142f12c8cb855dba92c926d:/sdk/python/tests/test_benchmark_collections.py diff --git a/sdk/python/tests/test_benchmark_collections.py b/sdk/python/tests/test_benchmark_collections.py index 273011e8f0..fc062e791c 100644 --- a/sdk/python/tests/test_benchmark_collections.py +++ b/sdk/python/tests/test_benchmark_collections.py @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + from __future__ import absolute_import import arvados import sys @@ -47,7 +51,7 @@ class CollectionBenchmark(run_test_server.TestCaseWithServers, dst = arvados.collection.Collection() with tutil.mock_keep_responses('x'*self.TEST_BLOCK_SIZE, 200): for name in self.list_recursive(src): - with src.open(name) as srcfile, dst.open(name, 'w') as dstfile: + with src.open(name, 'rb') as srcfile, dst.open(name, 'wb') as dstfile: dstfile.write(srcfile.read()) dst.save_new()