TST: py2.5 compatibility - no with

pull/370/head
Daniel Black 2013-09-29 15:46:15 +10:00
parent 723ea964a7
commit 86d3ee5373
1 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ class ExecuteActions(unittest.TestCase):
def testActionsOutput(self):
self.defaultActions()
self.__actions.start()
with open(self.__tmpfilename) as f:
f = open(self.__tmpfilename)
time.sleep(3)
self.assertEqual(f.read(),"ip start 64\n")