summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGinnis <sean.mcginnis@gmail.com>2020-04-03 17:11:40 -0500
committerSean McGinnis <sean.mcginnis@gmail.com>2020-04-03 17:11:40 -0500
commit725e004d32d538f9d163c727308ee20385c0310d (patch)
treefa14f47643789c7adf99d2d659556b1010f690bb
parent70f1ff375ac82f8231c259d9bb671293199d0f67 (diff)
downloadpython-openstackclient-725e004d32d538f9d163c727308ee20385c0310d.tar.gz
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: Ibd39328c27b68190e2edbf1f52fcea52db3ae791 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
-rw-r--r--lower-constraints.txt1
-rw-r--r--openstackclient/tests/unit/identity/v3/test_access_rule.py2
-rw-r--r--test-requirements.txt1
3 files changed, 1 insertions, 3 deletions
diff --git a/lower-constraints.txt b/lower-constraints.txt
index 83e19fe6..ac41658c 100644
--- a/lower-constraints.txt
+++ b/lower-constraints.txt
@@ -43,7 +43,6 @@ kombu==4.0.0
linecache2==1.0.0
MarkupSafe==1.1.0
mccabe==0.2.1
-mock==2.0.0
monotonic==0.6
mox3==0.20.0
msgpack-python==0.4.0
diff --git a/openstackclient/tests/unit/identity/v3/test_access_rule.py b/openstackclient/tests/unit/identity/v3/test_access_rule.py
index f8b6093a..904fe323 100644
--- a/openstackclient/tests/unit/identity/v3/test_access_rule.py
+++ b/openstackclient/tests/unit/identity/v3/test_access_rule.py
@@ -14,8 +14,8 @@
#
import copy
+from unittest import mock
-import mock
from osc_lib import exceptions
from osc_lib import utils
diff --git a/test-requirements.txt b/test-requirements.txt
index 55ae1ea4..41600a6a 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -5,7 +5,6 @@ hacking>=2.0.0 # Apache-2.0
coverage!=4.4,>=4.0 # Apache-2.0
fixtures>=3.0.0 # Apache-2.0/BSD
flake8-import-order>=0.13 # LGPLv3
-mock>=2.0.0 # BSD
oslotest>=3.2.0 # Apache-2.0
requests>=2.14.2 # Apache-2.0
requests-mock>=1.2.0 # Apache-2.0