From 28daa7970baa8eb3bb01c82a63b5f513cc544057 Mon Sep 17 00:00:00 2001 From: xuanyandong Date: Sun, 3 Jan 2021 11:38:05 +0800 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: I1d1d2ab862725bed2585406e5f215450a42f225e --- etcd3gw/tests/test_client.py | 2 +- test-requirements.txt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/etcd3gw/tests/test_client.py b/etcd3gw/tests/test_client.py index 9b0a145..d4bfc5c 100644 --- a/etcd3gw/tests/test_client.py +++ b/etcd3gw/tests/test_client.py @@ -10,7 +10,7 @@ # License for the specific language governing permissions and limitations # under the License. -import mock +from unittest import mock from etcd3gw.client import Etcd3Client from etcd3gw.exceptions import Etcd3Exception diff --git a/test-requirements.txt b/test-requirements.txt index f1c34d3..26be395 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -13,5 +13,4 @@ testtools>=1.4.0 # MIT pifpaf>=0.10.0 # Apache-2.0 nose>=1.3.7 # GNU LGPL pytest>=3.0.0 # MIT -mock>=2.0.0 # BSD urllib3>=1.15.1 # MIT