Commit 07750b3
chore: update pytest-asyncio uvloop configuration (#251)
# Summary
Update the test suite’s uvloop integration to align with
`pytest-asyncio`’s loop-factory direction ahead of Python 3.14 policy
deprecations. The shared pytest configuration now uses the hook-based
uvloop setup only, matching the repository’s `pytest-asyncio>=1.0,<2`
requirement.
# Changes
- **pytest-asyncio loop factory hook**
- Keep `pytest_asyncio_loop_factories(...)` in
`/home/runner/work/plugboard/plugboard/tests/conftest.py`
- Configure uvloop via `uvloop.new_event_loop`
- **Remove obsolete compatibility fallback**
- Drop the conditional `event_loop_policy` fallback for older
`pytest-asyncio` releases
- Simplify the hook implementation now that the project locks to
`pytest-asyncio 1.x`
- **Focused coverage**
- Keep
`/home/runner/work/plugboard/plugboard/tests/unit/test_conftest.py`
- Update it to validate only the supported hook-based uvloop
configuration path
- **Branch maintenance**
- Merge `origin/main` into this branch and resolve the resulting
conflict in `/home/runner/work/plugboard/plugboard/tests/conftest.py`
- **Validation**
- Ran `make lint`
- Ran `make build`
- Ran `uv run pytest -rs tests/unit/test_conftest.py
tests/integration/test_component_event_handlers.py`
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: toby-coleman <13170610+toby-coleman@users.noreply.github.com>1 parent 71d67b8 commit 07750b3
2 files changed
Lines changed: 15 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments