From dc7fa7743c4b5ac6f77d0d263a24e9da75d84cec Mon Sep 17 00:00:00 2001 From: dajiaohuang Date: Thu, 8 Oct 2026 20:01:20 +0800 Subject: [PATCH] test: skip Matrix retry regression without optional SDK --- tests/services/partners/test_matrix_delivery_retry.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/services/partners/test_matrix_delivery_retry.py b/tests/services/partners/test_matrix_delivery_retry.py index 2da6308ff..ccef71685 100644 --- a/tests/services/partners/test_matrix_delivery_retry.py +++ b/tests/services/partners/test_matrix_delivery_retry.py @@ -1,18 +1,21 @@ """Native Matrix SDK error responses must reach the shared retry boundary.""" from aiohttp import web -from nio import AsyncClient, AsyncClientConfig import pytest from deeptutor.partners.bus.events import OutboundMessage from deeptutor.partners.bus.queue import MessageBus from deeptutor.partners.channels.manager import send_with_retry -from deeptutor.partners.channels.matrix import MatrixChannel @pytest.mark.asyncio async def test_matrix_error_response_is_retried() -> None: """Exercise the native SDK against a local server, without a Matrix account.""" + pytest.importorskip("nio") + from nio import AsyncClient, AsyncClientConfig + + from deeptutor.partners.channels.matrix import MatrixChannel + requests = 0 delivered: list[str] = []