Fix assertMessageEqual to actually raise the exception

This commit is contained in:
2021-02-26 21:05:01 +01:00
parent 8f17f85d16
commit 0a1ccfec24

View File

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