Skip to content

Configuration option for a custom event loop policy and/or custom event loop class? #20

Closed
@leifurhauks

Description

@leifurhauks

It would be useful when testing an application that uses a custom implementation of asyncio.AbstractEventLoop to be able to provide a custom event loop policy and/or custom event loop via a configuration option.

It is of course already possible to set the event loop policy globally with asyncio.set_event_loop_policy (e.g. in pytest_configure) or to override the event_loop fixture so that it returns a loop of the desired class, so perhaps this would be unnecessary.

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