Browse Source

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: I792a17f4b2667713503e6bc10cfabed9905d8535
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
tags/4.0.2^0
Sean McGinnis 3 months ago
parent
commit
60a157a09b
No known key found for this signature in database GPG Key ID: CE7EE4BFAF8D70C8
3 changed files with 2 additions and 3 deletions
  1. +0
    -1
      lower-constraints.txt
  2. +1
    -1
      oslo_concurrency/tests/unit/test_lockutils.py
  3. +1
    -1
      oslo_concurrency/tests/unit/test_processutils.py

+ 0
- 1
lower-constraints.txt View File

@@ -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


+ 1
- 1
oslo_concurrency/tests/unit/test_lockutils.py View File

@@ -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


+ 1
- 1
oslo_concurrency/tests/unit/test_processutils.py View File

@@ -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



Loading…
Cancel
Save