Skip to content

Commit 5464dc5

Browse files
committed
AsyncMock not present in python3.7
1 parent a86a9b1 commit 5464dc5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/asyncio/test_bidi_async.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@
1717

1818
from unittest import mock
1919

20-
from unittest.mock import AsyncMock
20+
try:
21+
from unittest.mock import AsyncMock
22+
except ImportError: # pragma: NO COVER
23+
from mock import AsyncMock # type: ignore
24+
2125

2226
import pytest
2327

0 commit comments

Comments
 (0)