projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
21356: Remove all Python 2/3 compatibility imports
[arvados.git]
/
sdk
/
python
/
tests
/
test_cache.py
diff --git
a/sdk/python/tests/test_cache.py
b/sdk/python/tests/test_cache.py
index 9cf665babc9047729288db2d8b0291ca8b111d46..41984a5bf916dd7767855e0ca9f6b58912fd6c76 100644
(file)
--- a/
sdk/python/tests/test_cache.py
+++ b/
sdk/python/tests/test_cache.py
@@
-1,10
+1,8
@@
-from __future__ import print_function
-from __future__ import absolute_import
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: Apache-2.0
-from builtins import str
-from builtins import range
import hashlib
import hashlib
-import mock
import os
import random
import shutil
import os
import random
import shutil
@@
-13,11
+11,12
@@
import tempfile
import threading
import unittest
import threading
import unittest
+from unittest import mock
+
import arvados
import arvados.cache
from . import run_test_server
import arvados
import arvados.cache
from . import run_test_server
-
def _random(n):
return bytearray(random.getrandbits(8) for _ in range(n))
def _random(n):
return bytearray(random.getrandbits(8) for _ in range(n))