mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-02-07 08:43:48 +02:00
parent
2a8911d19e
commit
54e80d68f8
@ -16,9 +16,9 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import io
|
import io
|
||||||
|
import types
|
||||||
import asyncio
|
import asyncio
|
||||||
import unittest.mock
|
import unittest.mock
|
||||||
import collections.abc
|
|
||||||
|
|
||||||
|
|
||||||
class _asyncio_patch:
|
class _asyncio_patch:
|
||||||
@ -70,7 +70,7 @@ class AsyncioMagicMock(unittest.mock.MagicMock):
|
|||||||
"""
|
"""
|
||||||
Magic mock returning coroutine
|
Magic mock returning coroutine
|
||||||
"""
|
"""
|
||||||
__class__ = collections.abc.Awaitable
|
__class__ = types.CoroutineType
|
||||||
|
|
||||||
def __init__(self, return_value=None, return_values=None, **kwargs):
|
def __init__(self, return_value=None, return_values=None, **kwargs):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user