changeset 36948 | 0585337ea787 |
parent 36261 | c69e78ef2b54 |
child 38364 | 06c85cbd6824 |
--- a/tests/f Wed Mar 14 11:16:45 2018 -0700 +++ b/tests/f Wed Mar 14 15:39:28 2018 -0400 @@ -61,7 +61,8 @@ if opts.type: facts.append(b'file') if any((opts.hexdump, opts.dump, opts.md5, opts.sha1, opts.sha256)): - content = open(f, 'rb').read() + with open(f, 'rb') as fobj: + content = fobj.read() elif islink: if opts.type: facts.append(b'link')