Skip to content

Use a loop proxy for better flexibility #235

Open
@asvetlov

Description

@asvetlov

aioloop-proxy provide a proxy instance that is fully compatible with asyncio.AbstractEventLoop but allows to cooperate of multiple nested proxies at the same time.

From pytest-asyncio point of view, a session-scope fixture can use a session-level loop proxy that can cooperate with module-level, class-level, and function-level ones providing good test isolation.

I have no proof of concept for pytest-asyncio yet, if somebody with deep pytest internals knowledge can help -- you are welcome!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions