From 0869b1c75cd2727616ae3e8b9f9ceb81c5982164 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Beraud?= Date: Tue, 9 Jun 2020 12:20:06 +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: I4ee01710d04d650a3ad5ae069015255d3f674c74 --- lower-constraints.txt | 1 - watcher/tests/decision_engine/datasources/test_manager.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lower-constraints.txt b/lower-constraints.txt index db242f237..830c49f99 100644 --- a/lower-constraints.txt +++ b/lower-constraints.txt @@ -53,7 +53,6 @@ Mako==1.0.7 MarkupSafe==1.0 mccabe==0.2.1 microversion_parse==0.2.1 -mock==2.0.0 monotonic==1.4 mox3==0.25.0 msgpack==0.5.6 diff --git a/watcher/tests/decision_engine/datasources/test_manager.py b/watcher/tests/decision_engine/datasources/test_manager.py index 513616d32..1692103bf 100644 --- a/watcher/tests/decision_engine/datasources/test_manager.py +++ b/watcher/tests/decision_engine/datasources/test_manager.py @@ -16,7 +16,7 @@ from unittest import mock -from mock import MagicMock +from unittest.mock import MagicMock from watcher.common import exception from watcher.decision_engine.datasources import gnocchi