Skip to content

test_typing.test_awaitable raises a StopIteration with the DLR based async implementation #2054

Description

@slozier

test_typing.test_awaitable (from the 3.6 test suite) raises a StopIteration with the DLR based async implementation. Here's a simplified version of the test. It should run to completion, but currently produces a StopIteration error (on .NET 8 and .NET 10).

class AwaitableWrapper:
    def __await__(self):
        yield
        return 42

def test_awaitable():
    async def foo():
        return await AwaitableWrapper()
    g = foo()
    g.send(None)

test_awaitable()

@BCSharp

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions