From ef7cd08fdb45058fba70bd0d2abe457b7392f64d Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 20 Oct 2003 03:55:26 +0000 Subject: [PATCH] Fixed testHelp to control its own destiny. --- test/test_MiscCommands.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/test_MiscCommands.py b/test/test_MiscCommands.py index 964f22293..020242ae3 100644 --- a/test/test_MiscCommands.py +++ b/test/test_MiscCommands.py @@ -67,7 +67,12 @@ class MiscCommandsTestCase(ChannelPluginTestCase, PluginDocumentation): def testHelp(self): self.assertNotError('help list') - self.assertNotError('help @list') + try: + original = conf.prefixChars + conf.prefixChars = '@' + self.assertNotError('help @list') + finally: + conf.prefixChars = original self.assertNotError('help syntax') self.assertRegexp('help help', r'^\x02\(help') self.assertError('help morehelp')