mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
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: Daniel Latypov <dlatypov@google.com> Reviewed-by: David Gow <davidgow@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
This commit is contained in:
parent
05d9d2c3ee
commit
101e32a025
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user