Skip to content

Address pytest-asyncio event_loop deprecation warning #737

@abrookins

Description

@abrookins

Problem

The test suite uses a custom event_loop fixture pattern that is deprecated in pytest-asyncio:

DeprecationWarning: The event_loop fixture provided by pytest-asyncio has been redefined in
/tests/conftest.py:20
Replacing the event_loop fixture with a custom implementation is deprecated
and will lead to errors in the future.

Current Status

  • Low priority - tests work correctly despite the warning
  • Previous attempts to fix this broke Redis async connection handling
  • May need addressing when upgrading pytest-asyncio versions

Related

Notes

This is documented as a known issue. The fix requires careful refactoring of the async test architecture to avoid breaking Redis connection handling.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions