assertMessageEqual: fix error msg

This commit is contained in:
Valentin Lorentz 2021-02-27 14:14:08 +01:00
parent 0352a83a73
commit 309a0e45e7

View File

@ -79,7 +79,7 @@ class _IrcTestCase(unittest.TestCase):
`subparams`, and `target` are given."""
error = self.messageDiffers(msg, **kwargs)
if error:
raise self.failureException(msg)
raise self.failureException(error)
def messageEqual(self, msg, **kwargs):
"""Boolean negation of `messageDiffers` (returns a boolean,