From 309a0e45e7d9b2e01b2d3efd3c3dca9bb4fc83ed Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 27 Feb 2021 14:14:08 +0100 Subject: [PATCH] assertMessageEqual: fix error msg --- irctest/cases.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irctest/cases.py b/irctest/cases.py index 93b5f39..d1f5127 100644 --- a/irctest/cases.py +++ b/irctest/cases.py @@ -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,