X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6d1c41d6fd83824669cd1a6d714ea6da1ae7ab4c..4d9a9766999dda4657bce039a1d56a5591201e95:/sdk/python/tests/test_arv_get.py diff --git a/sdk/python/tests/test_arv_get.py b/sdk/python/tests/test_arv_get.py index d12739f6f6..aefcbd7b22 100644 --- a/sdk/python/tests/test_arv_get.py +++ b/sdk/python/tests/test_arv_get.py @@ -2,16 +2,15 @@ # # SPDX-License-Identifier: Apache-2.0 -from __future__ import absolute_import -from future.utils import listitems import io import logging -import mock import os import re import shutil import tempfile +from unittest import mock + import arvados import arvados.collection as collection import arvados.commands.get as arv_get @@ -51,7 +50,7 @@ class ArvadosGetTestCase(run_test_server.TestCaseWithServers, }): api = arvados.api() c = collection.Collection(api_client=api) - for path, data in listitems(contents): + for path, data in contents.items(): with c.open(path, 'wb') as f: f.write(data) c.save_new()