From 54e80d68f89849385e2eb748c4d2673fd0271d9d Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Tue, 23 May 2017 11:11:13 +0200 Subject: [PATCH] Fix test failed on Python 3.4 Fix #1045 --- tests/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/utils.py b/tests/utils.py index a818462a..abd3f0e3 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -16,9 +16,9 @@ # along with this program. If not, see . import io +import types import asyncio import unittest.mock -import collections.abc class _asyncio_patch: @@ -70,7 +70,7 @@ class AsyncioMagicMock(unittest.mock.MagicMock): """ Magic mock returning coroutine """ - __class__ = collections.abc.Awaitable + __class__ = types.CoroutineType def __init__(self, return_value=None, return_values=None, **kwargs): """