Skip to content

AioHTTPTestCase doesn't work with uvloop #2491

Closed
@aptiko

Description

I can't tell whether this is a shortcoming of uvloop or a bug of aiohttp, but here it goes:

8e76a4a added this statement:

policy.set_child_watcher(watcher)

The problem is that uvloop's event policy subclasses asyncio.AbstractEventLoop, which doesn't implement set_child_watcher() (it raises NotImplementedError). Maybe it should subclass DefaultEventLoopPolicy, but I don't really know. In any case, attempting to run any AioHTTPTestCase with uvloop results in a NotImplementedError.

aiohttp 2.2 apparently doesn't have this problem.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions