mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
TST: py2.5 compatibility - no with
This commit is contained in:
parent
723ea964a7
commit
86d3ee5373
1 changed files with 3 additions and 3 deletions
|
|
@ -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 a new issue