From 852795d2459cd90cbb9007985fe0a40671dc6000 Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Fri, 3 Apr 2020 17:14:01 -0500 Subject: [PATCH] Use unittest.mock instead of third party 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: Ia5a6219d6c4cc2cb10ddaeee22b957ca85064ab9 Signed-off-by: Sean McGinnis --- lower-constraints.txt | 1 - os_apply_config/tests/test_apply_config.py | 2 +- test-requirements.txt | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lower-constraints.txt b/lower-constraints.txt index bbbb5cd..032cac6 100644 --- a/lower-constraints.txt +++ b/lower-constraints.txt @@ -12,7 +12,6 @@ Jinja2==2.10 linecache2==1.0.0 MarkupSafe==1.0 mccabe==0.2.1 -mock==2.0.0 pbr==2.0.0 pep8==1.5.7 pyflakes==0.8.1 diff --git a/os_apply_config/tests/test_apply_config.py b/os_apply_config/tests/test_apply_config.py index 8e921d4..d70748b 100644 --- a/os_apply_config/tests/test_apply_config.py +++ b/os_apply_config/tests/test_apply_config.py @@ -17,9 +17,9 @@ import atexit import json import os import tempfile +from unittest import mock import fixtures -import mock import testtools from os_apply_config import apply_config diff --git a/test-requirements.txt b/test-requirements.txt index 1762ace..efdba89 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -5,7 +5,6 @@ hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0 coverage!=4.4,>=4.0 # Apache-2.0 fixtures>=3.0.0 # Apache-2.0/BSD -mock>=2.0.0 # BSD python-subunit>=1.0.0 # Apache-2.0/BSD sphinx!=1.6.6,!=1.6.7,>=1.6.5,<2.0.0;python_version=='2.7' # BSD sphinx!=1.6.6,!=1.6.7,!=2.1.0,>=1.6.5;python_version>='3.4' # BSD