close file

This commit is contained in:
Andreas Preikschat 2013-04-20 20:39:10 +02:00
parent 17e2277d9c
commit 401d4d2688
1 changed files with 2 additions and 0 deletions

View File

@ -276,5 +276,7 @@ class TestServiceItem(TestCase):
first_line = items[0]
except IOError:
first_line = u''
finally:
open_file.close()
return first_line