summaryrefslogtreecommitdiffstats
path: root/qa/tasks/tests/test_radosgw_admin.py
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2020-03-24 09:33:57 +0100
committerKefu Chai <kchai@redhat.com>2020-03-24 11:27:55 +0100
commit80b71ef461043bfa274b2c73fb0697a0e75759cd (patch)
treea01caee79330e6cef334cbb92863775856b83cc3 /qa/tasks/tests/test_radosgw_admin.py
parentqa: import with full path (diff)
downloadceph-80b71ef461043bfa274b2c73fb0697a0e75759cd.tar.xz
ceph-80b71ef461043bfa274b2c73fb0697a0e75759cd.zip
qa: import py3 compatible modules using six
Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'qa/tasks/tests/test_radosgw_admin.py')
-rw-r--r--qa/tasks/tests/test_radosgw_admin.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/qa/tasks/tests/test_radosgw_admin.py b/qa/tasks/tests/test_radosgw_admin.py
index dbbebf89085..2ed0ebd52e0 100644
--- a/qa/tasks/tests/test_radosgw_admin.py
+++ b/qa/tasks/tests/test_radosgw_admin.py
@@ -1,4 +1,8 @@
-from mock import Mock
+import six
+if six.PY3:
+ from unittest.mock import Mock
+else:
+ from mock import Mock
from tasks import radosgw_admin