summaryrefslogtreecommitdiff
path: root/tests/test_asyncio/compat.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_asyncio/compat.py')
-rw-r--r--tests/test_asyncio/compat.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_asyncio/compat.py b/tests/test_asyncio/compat.py
new file mode 100644
index 0000000..ced4974
--- /dev/null
+++ b/tests/test_asyncio/compat.py
@@ -0,0 +1,6 @@
+from unittest import mock
+
+try:
+ mock.AsyncMock
+except AttributeError:
+ import mock