"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "fail2ban/tests/sockettestcase.py" between
fail2ban-0.10.5.tar.gz and fail2ban-0.11.1.tar.gz


sockettestcase.py  (fail2ban-0.10.5):sockettestcase.py  (fail2ban-0.11.1)
skipping to change at line 55 skipping to change at line 55
class TestMsg(object): class TestMsg(object):
def __init__(self, unpickle=(TestMsgError, ())): def __init__(self, unpickle=(TestMsgError, ())):
self.unpickle = unpickle self.unpickle = unpickle
def __reduce__(self): def __reduce__(self):
return self.unpickle return self.unpickle
class Socket(LogCaptureTestCase): class Socket(LogCaptureTestCase):
def setUp(self): def setUp(self):
"""Call before every test case.""" """Call before every test case."""
super(Socket, self).setUp() super(Socket, self).setUp()
self.server = AsyncServer(self) self.server = AsyncServer(self)
sock_fd, sock_name = tempfile.mkstemp('fail2ban.sock', 'f2b-socke t') sock_fd, sock_name = tempfile.mkstemp('fail2ban.sock', 'f2b-socke t')
os.close(sock_fd) os.close(sock_fd)
os.remove(sock_name) os.remove(sock_name)
self.sock_name = sock_name self.sock_name = sock_name
self.serverThread = None self.serverThread = None
def tearDown(self): def tearDown(self):
"""Call after every test case.""" """Call after every test case."""
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)