kunit: tool: remove redundant file.close() call in unit test
authorDaniel Latypov <dlatypov@google.com>
Thu, 3 Nov 2022 17:47:40 +0000 (10:47 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 12 Dec 2022 21:13:47 +0000 (14:13 -0700)
We're using a `with` block above, so the file object is already closed.

Signed-off-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/kunit/kunit_tool_test.py

index 5e3429a..90c65b0 100755 (executable)
@@ -242,8 +242,6 @@ class KUnitParserTest(unittest.TestCase):
                self.assertEqual(
                        "example",
                        result.subtests[1].name)
-               file.close()
-
 
        def test_ignores_prefix_printk_time(self):
                prefix_log = test_data_path('test_config_printk_time.log')