Skip to content

Commit c6628c1

Browse files
committed
Fix more py37 incompatibility.
1 parent ca68963 commit c6628c1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_aio.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
import sys
1818
import tempfile
1919

20-
from unittest.mock import AsyncMock, Mock, call
20+
from unittest.mock import Mock, call
21+
22+
if sys.version_info >= (3, 8):
23+
from unittest.mock import AsyncMock
2124

2225
import pytest
2326

0 commit comments

Comments
 (0)