Merge "Close file-like object after used"

This commit is contained in:
Jenkins 2017-02-13 16:23:17 +00:00 committed by Gerrit Code Review
commit 5b8d692ded

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()