remove double call of inherited setup in test cases;

previously caused that after that no restore of log-handler takes place in `tearDown` later, so after that tests it remains by `LogCaptureTestCase._MemHandler`, so every future logged message disappear in nirvana;
partially fixes #3635
pull/3402/merge
sebres 2023-11-22 20:00:50 +01:00
parent 22ce0c0536
commit cdb6607261
1 changed files with 1 additions and 2 deletions

View File

@ -54,7 +54,6 @@ class Socket(LogCaptureTestCase):
def setUp(self):
"""Call before every test case."""
LogCaptureTestCase.setUp(self)
super(Socket, self).setUp()
self.server = AsyncServer(self)
sock_fd, sock_name = tempfile.mkstemp('fail2ban.sock', 'f2b-socket')
@ -68,7 +67,7 @@ class Socket(LogCaptureTestCase):
if self.serverThread:
self.server.stop(); # stop if not already stopped
self._stopServerThread()
LogCaptureTestCase.tearDown(self)
super(Socket, self).tearDown()
@staticmethod
def proceed(message):