mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
1 file changed
+2
-2
+2
-2
@@ -16,9 +16,9 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
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):
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user