Commit 101e32a0 authored by Daniel Latypov's avatar Daniel Latypov Committed by Shuah Khan

kunit: tool: remove redundant file.close() call in unit test

We're using a `with` block above, so the file object is already closed.
Signed-off-by: default avatarDaniel Latypov <dlatypov@google.com>
Reviewed-by: default avatarDavid Gow <davidgow@google.com>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent 05d9d2c3
...@@ -242,8 +242,6 @@ class KUnitParserTest(unittest.TestCase): ...@@ -242,8 +242,6 @@ class KUnitParserTest(unittest.TestCase):
self.assertEqual( self.assertEqual(
"example", "example",
result.subtests[1].name) result.subtests[1].name)
file.close()
def test_ignores_prefix_printk_time(self): def test_ignores_prefix_printk_time(self):
prefix_log = test_data_path('test_config_printk_time.log') prefix_log = test_data_path('test_config_printk_time.log')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment