diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 616336c..acdec5a 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,12 @@ Releases ======== +3.8.1 (2022-06-24) +------------------ + +* Fix regression caused by an explicit ``mock`` dependency in the code (`#298`_). + +.. _#298: https://github.com/pytest-dev/pytest-mock/issues/298 3.8.0 (2022-06-24) ------------------ diff --git a/src/pytest_mock/plugin.py b/src/pytest_mock/plugin.py index 293e76e..0d2ac31 100644 --- a/src/pytest_mock/plugin.py +++ b/src/pytest_mock/plugin.py @@ -30,8 +30,7 @@ if sys.version_info[:2] > (3, 7): AsyncMockType = unittest.mock.AsyncMock else: - import mock - AsyncMockType = mock.AsyncMock + AsyncMockType = Any class PytestMockWarning(UserWarning):