close file

This commit is contained in:
Andreas Preikschat 2013-04-20 20:39:10 +02:00
parent 17e2277d9c
commit 401d4d2688

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