From df4b72060b1fc4edaae0a93dbf36bf247410fcf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Schoentgen?= Date: Mon, 16 Aug 2021 09:49:22 +0200 Subject: [PATCH] Use the mock standard module It is available as `unittest.mock` since Python 3.3. --- requirements-dev.txt | 2 -- tests/__init__.py | 2 +- tests/test_utils.py | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 39bbeee4..d9db059d 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -10,8 +10,6 @@ twine # Tests flake8 -# mock>1.0.1 requires setuptools>17 -mock<=1.0.1 py pytest pytest-datafiles diff --git a/tests/__init__.py b/tests/__init__.py index 7a99ea33..2c5f80ea 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -2,7 +2,7 @@ import os import datetime -import mock +from unittest import mock from io import StringIO import py diff --git a/tests/test_utils.py b/tests/test_utils.py index 14612846..b993767f 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -9,7 +9,7 @@ import datetime import operator from io import StringIO -from mock import patch +from unittest.mock import patch import pytest from click.exceptions import Abort from dateutil.tz import tzutc