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):
|
||||
self.defaultActions()
|
||||
self.__actions.start()
|
||||
with open(self.__tmpfilename) as f:
|
||||
time.sleep(3)
|
||||
self.assertEqual(f.read(),"ip start 64\n")
|
||||
f = open(self.__tmpfilename)
|
||||
time.sleep(3)
|
||||
self.assertEqual(f.read(),"ip start 64\n")
|
||||
|
||||
self.__actions.stop()
|
||||
self.__actions.join()
|
||||
|
|
Loading…
Reference in New Issue