iotests: use subprocess.DEVNULL instead of open("/dev/null")
commit79da62b352a954405b0894b980355497d58c5c84
authorJohn Snow <jsnow@redhat.com>
Tue, 20 Jul 2021 17:33:21 +0000 (20 13:33 -0400)
committerHanna Reitz <hreitz@redhat.com>
Wed, 1 Sep 2021 10:57:31 +0000 (1 12:57 +0200)
treeb303a7deeaad888550928f54922d868f0894e705
parent06aad78b825cc25329411b10c159f96819ce39a1
iotests: use subprocess.DEVNULL instead of open("/dev/null")

Avoids a warning from pylint not to use open() outside of a
with-statement, and is ... probably more portable anyway. Not that I
think we care too much about running tests *on* Windows, but... eh.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-Id: <20210720173336.1876937-3-jsnow@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
tests/qemu-iotests/iotests.py