From 3b3bd43def401e03a53f41bec4c6c33690bf0605 Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Fri, 13 Mar 2020 11:51:49 -0500 Subject: [PATCH] Use unittest.mock instead of third part mock Now that we no longer support py27, we can use the standard library unittest.mock module instead of the third party mock lib. Change-Id: I7590895d9812f61fcf57c956a26f27d0d567613e Signed-off-by: Sean McGinnis --- os_net_config/tests/test_utils.py | 2 +- test-requirements.txt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/os_net_config/tests/test_utils.py b/os_net_config/tests/test_utils.py index be20ffac..81675a57 100644 --- a/os_net_config/tests/test_utils.py +++ b/os_net_config/tests/test_utils.py @@ -14,12 +14,12 @@ # License for the specific language governing permissions and limitations # under the License. -import mock import os import os.path import random import shutil import tempfile +from unittest import mock import yaml from os_net_config import objects diff --git a/test-requirements.txt b/test-requirements.txt index 23473222..ed22996d 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -9,5 +9,4 @@ python-subunit>=0.0.18 # Apache-2.0/BSD stestr>=2.0.0 # Apache-2.0 testscenarios>=0.4 # Apache-2.0/BSD testtools>=1.4.0 # MIT -mock>=2.0 # BSD reno>=2.5.0 # Apache-2.0