mirror of https://github.com/fail2ban/fail2ban
TST: py2.5 compatibility - no with
parent
723ea964a7
commit
86d3ee5373
|
@ -68,9 +68,9 @@ class ExecuteActions(unittest.TestCase):
|
||||||
def testActionsOutput(self):
|
def testActionsOutput(self):
|
||||||
self.defaultActions()
|
self.defaultActions()
|
||||||
self.__actions.start()
|
self.__actions.start()
|
||||||
with open(self.__tmpfilename) as f:
|
f = open(self.__tmpfilename)
|
||||||
time.sleep(3)
|
time.sleep(3)
|
||||||
self.assertEqual(f.read(),"ip start 64\n")
|
self.assertEqual(f.read(),"ip start 64\n")
|
||||||
|
|
||||||
self.__actions.stop()
|
self.__actions.stop()
|
||||||
self.__actions.join()
|
self.__actions.join()
|
||||||
|
|
Loading…
Reference in New Issue