Skip to content

Commit 901f3fc

Browse files
committed
Fix tests on 3.8 by importing AsyncMock from the correct package
1 parent 6116fe8 commit 901f3fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
try:
1010
# Python 3.8 already has this
11-
from mock import AsyncMock as CoroutineMock # noqa: F401
11+
from unittest.mock import AsyncMock as CoroutineMock # noqa: F401
1212
except ImportError:
1313
from asynctest import CoroutineMock # noqa: F401
1414

0 commit comments

Comments
 (0)