Skip to content

Conversation

@tony
Copy link
Collaborator

@tony tony commented Jul 26, 2024

tony added 5 commits July 26, 2024 14:12
__________________________________________ test_asyncio_executor __________________________________________

    def test_asyncio_executor():
        # type: () -> None
        def resolver(context, *_):
            # type: (Optional[Any], *ResolveInfo) -> str
            asyncio.sleep(0.001)
            return "hey"

>       @asyncio.coroutine
E       AttributeError: module 'asyncio' has no attribute 'coroutine'. Did you mean: 'coroutines'?

graphql/execution/tests/test_executor_asyncio.py:27: AttributeError
____________________________________ test_asyncio_executor_custom_loop ____________________________________

    def test_asyncio_executor_custom_loop():
        # type: () -> None
        loop = asyncio.get_event_loop()

        def resolver(context, *_):
            # type: (Optional[Any], *ResolveInfo) -> str
            asyncio.sleep(0.001, loop=loop)
            return "hey"

>       @asyncio.coroutine
E       AttributeError: module 'asyncio' has no attribute 'coroutine'. Did you mean: 'coroutines'?

graphql/execution/tests/test_executor_asyncio.py:61: AttributeError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants