Commit 151a4b05 authored by Jeremy C. Reed's avatar Jeremy C. Reed
Browse files

[trac1341] fix spelling typo in code

and in tests
parent 3924f73f
......@@ -928,9 +928,9 @@ class TestBossComponents(unittest.TestCase):
(anyway it is not told so). It does not die if it is killed
the first time. It dies only when killed forcefully.
"""
def kill(self, forcefull=False):
killed.append(forcefull)
if forcefull:
def kill(self, forceful=False):
killed.append(forceful)
if forceful:
bob.components = {}
def pid(self):
return 1
......
......@@ -283,7 +283,7 @@ class BaseComponent:
"""
pass
def kill(self, forcefull=False):
def kill(self, forceful=False):
"""
Kills the component.
......
......@@ -57,8 +57,8 @@ class SockCreator(BaseComponent):
"""
return self.__creator.pid() if self.__creator else None
def kill(self, forcefull=False):
# We don't really care about forcefull here
def kill(self, forceful=False):
# We don't really care about forceful here
if self.__creator:
self.__creator.kill()
......@@ -130,7 +130,7 @@ class SetUID(BaseComponent):
posix.setuid(self.uid)
def _stop_internal(self): pass
def kill(self, forcefull=False): pass
def kill(self, forceful=False): pass
def name(self):
return "Set UID"
......
......@@ -592,7 +592,7 @@ class TestComponent(BaseComponent):
def _failed_internal(self):
self.log('failed')
def kill(self, forcefull=False):
def kill(self, forceful=False):
self.log('killed')
class FailComponent(BaseComponent):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment