From d225a19af418ef92a760ddc5a4066c86d5ca22ce Mon Sep 17 00:00:00 2001 From: Cuong Nguyen Date: Thu, 19 Jan 2017 16:36:12 +0700 Subject: [PATCH] Close file-like object after used Change-Id: I7df581243deef7bda4b9b5926addf61421bd42f7 --- tests/test_merge_config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_merge_config.py b/tests/test_merge_config.py index 2300308cf1..6c4af336b5 100644 --- a/tests/test_merge_config.py +++ b/tests/test_merge_config.py @@ -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()