mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-18 07:23:47 +02:00
parent
2a8911d19e
commit
54e80d68f8
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user