X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/d6cccb3ea4e5f076a436d9935e3835d4b620b859..7a9e57f98e2d5bad3dec7d17cfb9c86e5c5c927c:/sdk/cwl/tests/test_http.py diff --git a/sdk/cwl/tests/test_http.py b/sdk/cwl/tests/test_http.py index 34f2bbb9d7..4119fee383 100644 --- a/sdk/cwl/tests/test_http.py +++ b/sdk/cwl/tests/test_http.py @@ -1,9 +1,10 @@ -from future import standard_library -standard_library.install_aliases() # Copyright (C) The Arvados Authors. All rights reserved. # # SPDX-License-Identifier: Apache-2.0 +from future import standard_library +standard_library.install_aliases() + import copy import io import functools @@ -59,7 +60,7 @@ class TestHttpToKeep(unittest.TestCase): getmock.assert_called_with("http://example.com/file1.txt", stream=True, allow_redirects=True) - cm.open.assert_called_with("file1.txt", "w") + cm.open.assert_called_with("file1.txt", "wb") cm.save_new.assert_called_with(name="Downloaded from http://example.com/file1.txt", owner_uuid=None, ensure_unique_name=True) @@ -187,7 +188,7 @@ class TestHttpToKeep(unittest.TestCase): getmock.assert_called_with("http://example.com/file1.txt", stream=True, allow_redirects=True) - cm.open.assert_called_with("file1.txt", "w") + cm.open.assert_called_with("file1.txt", "wb") cm.save_new.assert_called_with(name="Downloaded from http://example.com/file1.txt", owner_uuid=None, ensure_unique_name=True) @@ -278,7 +279,7 @@ class TestHttpToKeep(unittest.TestCase): getmock.assert_called_with("http://example.com/download?fn=/file1.txt", stream=True, allow_redirects=True) - cm.open.assert_called_with("file1.txt", "w") + cm.open.assert_called_with("file1.txt", "wb") cm.save_new.assert_called_with(name="Downloaded from http://example.com/download?fn=/file1.txt", owner_uuid=None, ensure_unique_name=True)