Skip to content

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

@slozier

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions