Fix some typos

This commit is contained in:
David Macek 2021-04-24 19:30:00 +02:00 committed by Valentin Lorentz
parent fec6959acb
commit e740953068
3 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ class ServicesTestCase(PluginTestCase):
config = { config = {
'plugins.Services.NickServ': 'NickServ', 'plugins.Services.NickServ': 'NickServ',
'plugins.Services.ChanServ': 'ChanServ', 'plugins.Services.ChanServ': 'ChanServ',
} }
def testPasswordAndIdentify(self): def testPasswordAndIdentify(self):
self.assertNotError('services password foo bar') self.assertNotError('services password foo bar')
@ -50,7 +50,7 @@ class ServicesTestCase(PluginTestCase):
self.assertTrue(m.args[0] == 'NickServ') self.assertTrue(m.args[0] == 'NickServ')
self.assertTrue(m.args[1].lower() == 'identify biff') self.assertTrue(m.args[1].lower() == 'identify biff')
def testPasswordConfg(self): def testPasswordConfig(self):
self.assertNotError('config plugins.Services.nicks ""') self.assertNotError('config plugins.Services.nicks ""')
self.assertNotError('config network plugins.Services.nicks ""') self.assertNotError('config network plugins.Services.nicks ""')

View File

@ -95,7 +95,7 @@ def open_registry(filename, clear=False):
# worse, the error will pass silently. # worse, the error will pass silently.
# #
# If the line ends in an odd number of backslashes, then there is a # If the line ends in an odd number of backslashes, then there is a
# line-continutation. # line-continuation.
m = slashEnd.search(line) m = slashEnd.search(line)
if m and len(m.group(0)) % 2: if m and len(m.group(0)) % 2:
acc += line[:-1] acc += line[:-1]

View File

@ -280,7 +280,7 @@ class PluginTestCase(SupyTestCase):
def tearDown(self): def tearDown(self):
if self.__class__ in (PluginTestCase, ChannelPluginTestCase): if self.__class__ in (PluginTestCase, ChannelPluginTestCase):
# Necessary because there's a test in here that shouldn\'t run. # Necessary because there's a test in here that shouldn't run.
return return
for (group, original) in self.originals.items(): for (group, original) in self.originals.items():
group.setValue(original) group.setValue(original)