From ada52c729dedbcfff2561be2dc19ca55356e0aeb Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 15 Feb 2005 07:40:03 +0000 Subject: [PATCH] Needed to re-raise ArgumentError in order to prevent a spurious test failure. --- src/test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test.py b/src/test.py index c63f782d7..120d0a50b 100644 --- a/src/test.py +++ b/src/test.py @@ -73,7 +73,7 @@ class TimeoutError(AssertionError): def __str__(self): return '%r timed out' % self.args[0] -class TestPlugin(callbacks.Privmsg): +class TestPlugin(callbacks.Plugin): def eval(self, irc, msg, args): """ @@ -83,6 +83,8 @@ class TestPlugin(callbacks.Privmsg): """ try: irc.reply(repr(eval(' '.join(args)))) + except callbacks.ArgumentError: + raise except Exception, e: irc.reply(utils.exnToString(e)) # Since we know we don't now need the Irc object, we just give None. This