summaryrefslogtreecommitdiff
path: root/ironic/tests/unit/common/test_rpc_service.py
diff options
context:
space:
mode:
authorIury Gregory Melo Ferreira <imelofer@redhat.com>2020-04-07 10:33:11 +0200
committerIury Gregory Melo Ferreira <imelofer@redhat.com>2020-04-30 19:04:17 +0200
commitd6e7552457b1ab2f494e2f9ea960792e36d5caba (patch)
tree34702c40e611da203c310aabb2afcd22d7bedf5f /ironic/tests/unit/common/test_rpc_service.py
parent2ffbfb4b4627f05954ce453436982fca1448af9a (diff)
downloadironic-d6e7552457b1ab2f494e2f9ea960792e36d5caba.tar.gz
Switch to unittest mock
Python3 have a standard library for mock in the unittest module, let's drop the mock requirement and switch tests to unittest mock. Change-Id: I4f1b3e25c8adbc24cdda51c73da3b66967f7ef23
Diffstat (limited to 'ironic/tests/unit/common/test_rpc_service.py')
-rw-r--r--ironic/tests/unit/common/test_rpc_service.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ironic/tests/unit/common/test_rpc_service.py b/ironic/tests/unit/common/test_rpc_service.py
index 755df4f81..ec440324c 100644
--- a/ironic/tests/unit/common/test_rpc_service.py
+++ b/ironic/tests/unit/common/test_rpc_service.py
@@ -10,7 +10,8 @@
# License for the specific language governing permissions and limitations
# under the License.
-import mock
+from unittest import mock
+
from oslo_config import cfg
import oslo_messaging
from oslo_service import service as base_service