Close file-like object after used

Change-Id: I7df581243deef7bda4b9b5926addf61421bd42f7
This commit is contained in:
Cuong Nguyen 2017-01-19 16:36:12 +07:00
parent c108c5e604
commit d225a19af4

View File

@ -96,6 +96,7 @@ class OverrideConfigParserTest(base.BaseTestCase):
output = StringIO()
parser.write(output)
self.assertEqual(ini, output.getvalue())
output.close()
def test_merge(self):
parser = merge_configs.OverrideConfigParser()
@ -104,3 +105,4 @@ class OverrideConfigParserTest(base.BaseTestCase):
output = StringIO()
parser.write(output)
self.assertEqual(TESTC, output.getvalue())
output.close()