tests: start to fix e2e tests

python and slixmpp have moved a bit in 10 years.
This commit is contained in:
mathieui
2025-04-19 23:00:27 +02:00
parent 25de4c6b76
commit 2f59303cf9
2 changed files with 15 additions and 26 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ def check_xpath(xpaths, xmpp, after, stanza):
if (expected and not matched) or (not expected and matched):
raise StanzaError("Received stanza\n%s\ndid not match expected xpath\n%s" % (stanza, real_xpath))
if after:
if isinstance(after, collections.Iterable):
if isinstance(after, collections.abc.Iterable):
for af in after:
af(stanza, xmpp)
else: