From 360a853bcad8ed43f518f53e19210c992d03ffb8 Mon Sep 17 00:00:00 2001 From: Val Lorentz Date: Sat, 2 Sep 2023 13:43:01 +0200 Subject: [PATCH] Skip testLabeledPrivmsgResponsesToMultipleClients if PRIVMSG doesn't support multiple targets (#217) --- irctest/server_tests/labeled_responses.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/irctest/server_tests/labeled_responses.py b/irctest/server_tests/labeled_responses.py index 76aa324..b6e8bd9 100644 --- a/irctest/server_tests/labeled_responses.py +++ b/irctest/server_tests/labeled_responses.py @@ -12,6 +12,7 @@ import pytest from irctest import cases from irctest.numerics import ERR_UNKNOWNCOMMAND from irctest.patma import ANYDICT, ANYOPTSTR, NotStrRe, RemainingKeys, StrRe +from irctest.runner import OptionalExtensionNotSupported class LabeledResponsesTestCase(cases.BaseServerTestCase): @@ -22,7 +23,10 @@ class LabeledResponsesTestCase(cases.BaseServerTestCase): capabilities=["echo-message", "batch", "labeled-response"], skip_if_cap_nak=True, ) + if int(self.targmax.get("PRIVMSG", "1") or "4") < 3: + raise OptionalExtensionNotSupported("PRIVMSG to multiple targets") self.getMessages(1) + self.connectClient( "bar", capabilities=["echo-message", "batch", "labeled-response"],