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: I0b5e9e60b00204f938d23fc4ff8e020ebb4afa43
This commit is contained in:
Hervé Beraud 2020-06-09 00:09:14 +02:00 committed by Jeremy Stanley
parent 459edf219c
commit c08aed239d
3 changed files with 2 additions and 3 deletions

View File

@ -10,7 +10,7 @@
# License for the specific language governing permissions and limitations
# under the License.
import mock
from unittest import mock
from openstack_election.cmds import ci_check_all_candidate_files
from openstack_election.tests import base

View File

@ -10,7 +10,7 @@
# License for the specific language governing permissions and limitations
# under the License.
import mock
from unittest import mock
from openstack_election import exception
from openstack_election.tests import base

View File

@ -4,7 +4,6 @@
# needed for doc build
hacking>=3.1.0,<3.2.0 # Apache-2.0
yamllint
mock>=2.0.0 # BSD
oslotest>=1.10.0 # Apache-2.0
stestr>=2.0.0 # Apache-2.0
testresources>=2.0.0 # Apache-2.0/BSD