Skip to content

idea: use sys.set_coroutine_wrapper in the test suite to enforce assert_yields *everywhere* #152

Description

@njsmith

Like:

@types.coroutine
def enforce_checkpoint(coro):
    with assert_yields():
        yield from coro.__await__()
sys.set_coroutine_wrapper(enforce_checkpoint)

and calling this from conftest.py

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    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