projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05d9d2c
)
kunit: tool: remove redundant file.close() call in unit test
author
Daniel Latypov
<dlatypov@google.com>
Thu, 3 Nov 2022 17:47:40 +0000
(10:47 -0700)
committer
Shuah 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
patch
|
blob
|
history
diff --git
a/tools/testing/kunit/kunit_tool_test.py
b/tools/testing/kunit/kunit_tool_test.py
index 5e3429a1202b7208bf76d7528b49ff09cfa9aee5..90c65b072be9520c4631def867611fa810596070 100755
(executable)
--- a/
tools/testing/kunit/kunit_tool_test.py
+++ b/
tools/testing/kunit/kunit_tool_test.py
@@
-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')