From ccebbd6ebbb787107523d71e51eb36bcdfdde759 Mon Sep 17 00:00:00 2001 From: toofar Date: Sat, 11 May 2024 14:17:11 +1200 Subject: [PATCH] adjust test strings for incrementing connection IDs --- tests/unit/misc/test_ipc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/misc/test_ipc.py b/tests/unit/misc/test_ipc.py index 79c2c7b7d..827ac828d 100644 --- a/tests/unit/misc/test_ipc.py +++ b/tests/unit/misc/test_ipc.py @@ -404,7 +404,7 @@ class TestOnError: socket.setErrorString("Connection refused.") with pytest.raises(ipc.Error, match=r"Error while handling IPC " - r"connection: Connection refused \(ConnectionRefusedError\)"): + r"connection [0-9]: Connection refused \(ConnectionRefusedError\)"): ipc_server.on_error(QLocalSocket.LocalSocketError.ConnectionRefusedError) @@ -439,7 +439,7 @@ class TestHandleConnection: ipc_server._server = FakeServer(socket) with pytest.raises(ipc.Error, match=r"Error while handling IPC " - r"connection: Error string \(ConnectionError\)"): + r"connection [0-9]: Error string \(ConnectionError\)"): ipc_server.handle_connection() assert "We got an error immediately." in caplog.messages