diff options
author | Sean McGinnis <sean.mcginnis@gmail.com> | 2020-03-31 14:15:15 -0500 |
---|---|---|
committer | Sean McGinnis <sean.mcginnis@gmail.com> | 2020-03-31 14:44:19 -0500 |
commit | 60a157a09bd078dfe598817ffa1da24d35461b71 (patch) | |
tree | 3908dc03b3fd8be9bc4f7967024456de538bccd8 | |
parent | 0a0c99a42aacf3fbdf25a7b9fafc826103d986b0 (diff) | |
download | oslo-concurrency-60a157a09bd078dfe598817ffa1da24d35461b71.tar.gz |
Use unittest.mock instead of third party mock4.0.2
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: I792a17f4b2667713503e6bc10cfabed9905d8535
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
-rw-r--r-- | lower-constraints.txt | 1 | ||||
-rw-r--r-- | oslo_concurrency/tests/unit/test_lockutils.py | 2 | ||||
-rw-r--r-- | oslo_concurrency/tests/unit/test_processutils.py | 2 |
3 files changed, 2 insertions, 3 deletions
diff --git a/lower-constraints.txt b/lower-constraints.txt index 27ecde6..986794b 100644 --- a/lower-constraints.txt +++ b/lower-constraints.txt @@ -24,7 +24,6 @@ keystoneauth1==3.4.0 linecache2==1.0.0 MarkupSafe==1.0 mccabe==0.2.1 -mock==2.0.0 monotonic==0.6 mox3==0.20.0 netaddr==0.7.18 diff --git a/oslo_concurrency/tests/unit/test_lockutils.py b/oslo_concurrency/tests/unit/test_lockutils.py index 1bd74a2..3ebdd71 100644 --- a/oslo_concurrency/tests/unit/test_lockutils.py +++ b/oslo_concurrency/tests/unit/test_lockutils.py @@ -21,8 +21,8 @@ import sys import tempfile import threading import time +from unittest import mock -import mock from oslo_config import cfg from oslotest import base as test_base import six diff --git a/oslo_concurrency/tests/unit/test_processutils.py b/oslo_concurrency/tests/unit/test_processutils.py index 982d293..2205bfa 100644 --- a/oslo_concurrency/tests/unit/test_processutils.py +++ b/oslo_concurrency/tests/unit/test_processutils.py @@ -26,9 +26,9 @@ import stat import subprocess import sys import tempfile +from unittest import mock import fixtures -import mock from oslotest import base as test_base import six |