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: Ib4184a05e753c3d1368167b91fc43bcc64a176c3
This commit is contained in:
Hervé Beraud 2020-06-09 12:08:14 +02:00
parent a1911d25a5
commit 55387a4f4a
3 changed files with 3 additions and 3 deletions

View File

@ -11,8 +11,9 @@
# under the License. # under the License.
import io import io
import mock
import os import os
from unittest import mock
import testscenarios import testscenarios
import testtools import testtools

View File

@ -15,9 +15,9 @@
import six import six
import sys import sys
import textwrap import textwrap
from unittest import mock
import fixtures import fixtures
import mock
import testscenarios import testscenarios
import testtools import testtools
from testtools import matchers from testtools import matchers

View File

@ -8,5 +8,4 @@ testscenarios>=0.4 # Apache-2.0/BSD
testtools>=2.2.0 # MIT testtools>=2.2.0 # MIT
virtualenv>=14.0.6 # MIT virtualenv>=14.0.6 # MIT
setuptools!=24.0.0,!=34.0.0,!=34.0.1,!=34.0.2,!=34.0.3,!=34.1.0,!=34.1.1,!=34.2.0,!=34.3.0,!=34.3.1,!=34.3.2,!=36.2.0,>=21.0.0 # PSF/ZPL setuptools!=24.0.0,!=34.0.0,!=34.0.1,!=34.0.2,!=34.0.3,!=34.1.0,!=34.1.1,!=34.2.0,!=34.3.0,!=34.3.1,!=34.3.2,!=36.2.0,>=21.0.0 # PSF/ZPL
mock>=2.0.0 # BSD
bashate>=0.5.1 # Apache-2.0 bashate>=0.5.1 # Apache-2.0