Skip to content

Asynctest replacement #1717

@andrewwhitehead

Description

@andrewwhitehead

The asynctest library which we use extensively in unit tests is no longer being maintained, and does not function properly under Python 3.8+.

Coincidentally, Python 3.8 with mock 4.0 introduces some tools (IsolatedAsyncioTestCase and AsyncMock) which might be sufficient to replace it. It looks like there is a backwards-compatible stub which could be required for testing in Python 3.6 and 3.7.

There would be some changes required to all async test cases (using asyncSetUp instead of async def setUp for example), and we will probably want to try porting some more advanced test cases first in order to check if any other features of asynctest are required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency filehelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions