Close file-like object after used
Change-Id: I7df581243deef7bda4b9b5926addf61421bd42f7
This commit is contained in:
parent
c108c5e604
commit
d225a19af4
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user