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: I1d1d2ab862725bed2585406e5f215450a42f225e
This commit is contained in:
xuanyandong 2021-01-03 11:38:05 +08:00 committed by Radosław Piliszek
parent 4f299a62c2
commit 28daa7970b
2 changed files with 1 additions and 2 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 etcd3gw.client import Etcd3Client
from etcd3gw.exceptions import Etcd3Exception

View File

@ -13,5 +13,4 @@ testtools>=1.4.0 # MIT
pifpaf>=0.10.0 # Apache-2.0
nose>=1.3.7 # GNU LGPL
pytest>=3.0.0 # MIT
mock>=2.0.0 # BSD
urllib3>=1.15.1 # MIT