Skip to content

Commit 7261433

Browse files
committed
Fix regression due to 'mock' import
Fix #298
1 parent 6ce9a78 commit 7261433

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.rst

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Releases
22
========
33

4+
3.8.1 (2022-06-24)
5+
------------------
6+
7+
* Fix regression caused by an explicit ``mock`` dependency in the code (`#298`_).
8+
9+
.. _#298: https://github.com/pytest-dev/pytest-mock/issues/298
410

511
3.8.0 (2022-06-24)
612
------------------

src/pytest_mock/plugin.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@
3030
if sys.version_info[:2] > (3, 7):
3131
AsyncMockType = unittest.mock.AsyncMock
3232
else:
33-
import mock
34-
AsyncMockType = mock.AsyncMock
33+
AsyncMockType = Any
3534

3635

3736
class PytestMockWarning(UserWarning):

0 commit comments

Comments
 (0)