From 9b9aabe74a7de830980e26672f68cffa0c821ea8 Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Fri, 13 Mar 2020 11:32:04 -0500 Subject: [PATCH] Use unittest.mock instead of third party mock We can now use the standard library mock library instead of the third party one previously needed for py27 compatibility. Change-Id: I6b80b62d8e3c8bd9432f567e0725c191cef6f715 Signed-off-by: Sean McGinnis --- reviewstats/tests/test_projectinfo.py | 2 +- test-requirements.txt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/reviewstats/tests/test_projectinfo.py b/reviewstats/tests/test_projectinfo.py index 736df08..eb3589a 100644 --- a/reviewstats/tests/test_projectinfo.py +++ b/reviewstats/tests/test_projectinfo.py @@ -10,7 +10,7 @@ # License for the specific language governing permissions and limitations # under the License. -import mock +from unittest import mock from reviewstats.tests import base from reviewstats import utils diff --git a/test-requirements.txt b/test-requirements.txt index ed50606..22a29e2 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -4,4 +4,3 @@ coverage>=3.6 fixtures>=0.3.14 python-subunit stestr>=2.0.0 -mock