From 73686aeb50bc6a6b54baa3236ac2bfe3113b3c64 Mon Sep 17 00:00:00 2001 From: James Vega Date: Thu, 26 Aug 2004 14:29:50 +0000 Subject: [PATCH] Attempt to fix an error in testing permban, but it doesn't want to let itself be fixed. --- test/test_Channel.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/test_Channel.py b/test/test_Channel.py index c0ce093fb..8a3c1a5d7 100644 --- a/test/test_Channel.py +++ b/test/test_Channel.py @@ -144,7 +144,14 @@ class ChannelTestCase(ChannelPluginTestCase, PluginDocumentation): def testPermban(self): self.assertNotError('permban foo!bar@baz') self.assertNotError('unpermban foo!bar@baz') - self.assertError('permban not!a.hostmask') + orig = conf.supybot.protocols.irc.strictRfc() + try: + conf.supybot.protocols.irc.strictRfc.setValue(True) + # something wonky is going on here. irc.error (src/Channel.py|449) + # is being called but the assert is failing + self.assertError('permban not!a.hostmask') + finally: + conf.supybot.protocols.irc.strictRfc.setValue(orig) def testIgnore(self): self.assertNotError('Channel ignore foo!bar@baz')