Files
nixpkgs/pkgs/development/python-modules/i3ipc/fix-async-tests.patch
Tom Hunze 7db5a1c7ed python313Packages.i3ipc: fix build
Upstream hasn't been very active in the past years.

1. pytest 8.4 introduced a breaking change where async tests fail
    instead of generating a warning when there is no async-aware plugin
    to handle them.
  - Changelog: https://github.com/pytest-dev/pytest/releases/tag/8.4.0
  - Fixed by adding pytest-asyncio as a dependency.

2. Upstream expects a very old version of pytest-asyncio. To make the
    tests work with latest pytest-asyncio I added a patch which:
  - Correctly decorates the only async fixture `i3` with
      `@pytest_asyncio.fixture`.
  - Configures `loop_scope='class'` for all async tests and the async
      fixture `i3` to match the existing `scope='class'` on `i3`.
2025-08-30 23:39:35 +02:00

790 B