From eab4382df8494b1c411fe0754acddfacfd503578 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Beraud?= Date: Tue, 9 Jun 2020 01:12:01 +0200 Subject: [PATCH] Use unittest.mock instead of mock The mock third party library was needed for mock support in py2 runtimes. Since we now only support py36 and later, we can use the standard lib unittest.mock module instead. Change-Id: Ie0e43904d375e542ca00cd43b3c84c7afb31ee85 --- heat/tests/openstack/ironic/test_port.py | 3 ++- lower-constraints.txt | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/heat/tests/openstack/ironic/test_port.py b/heat/tests/openstack/ironic/test_port.py index ac603ea955..4e9326f544 100644 --- a/heat/tests/openstack/ironic/test_port.py +++ b/heat/tests/openstack/ironic/test_port.py @@ -12,8 +12,9 @@ # under the License. import copy +from unittest import mock + from ironicclient.common.apiclient import exceptions as ic_exc -import mock from oslo_config import cfg from heat.common import exception diff --git a/lower-constraints.txt b/lower-constraints.txt index 35874684d6..d2699c73e1 100644 --- a/lower-constraints.txt +++ b/lower-constraints.txt @@ -48,7 +48,6 @@ lxml==3.4.1 Mako==1.0.7 MarkupSafe==1.0 mccabe==0.2.1 -mock==2.0.0 monotonic==1.4 msgpack==0.5.6 munch==2.2.0