aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/297
diff options
context:
space:
mode:
authorHanna Reitz <hreitz@redhat.com>2021-08-24 17:35:39 +0200
committerHanna Reitz <hreitz@redhat.com>2021-09-15 15:54:07 +0200
commit81dcb9ca1ff7f5588ed94824f13bc4c5232aca95 (patch)
tree9f50c3cc47e167b7366f4143e7d40f6f26a724cc /tests/qemu-iotests/297
parent9dbf6455f4f6bc59e68af033c5813c82d8a1ffff (diff)
downloadqemu-81dcb9ca1ff7f5588ed94824f13bc4c5232aca95.zip
qemu-81dcb9ca1ff7f5588ed94824f13bc4c5232aca95.tar.gz
qemu-81dcb9ca1ff7f5588ed94824f13bc4c5232aca95.tar.bz2
iotests: Fix unspecified-encoding pylint warnings
As of recently, pylint complains when `open()` calls are missing an `encoding=` specified. Everything we have should be UTF-8 (and in fact, everything should be UTF-8, period (exceptions apply)), so use that. Signed-off-by: Hanna Reitz <hreitz@redhat.com> Message-Id: <20210824153540.177128-2-hreitz@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/297')
-rwxr-xr-xtests/qemu-iotests/2972
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/297 b/tests/qemu-iotests/297
index 345b617..1ee15dd 100755
--- a/tests/qemu-iotests/297
+++ b/tests/qemu-iotests/297
@@ -46,7 +46,7 @@ def is_python_file(filename):
if filename.endswith('.py'):
return True
- with open(filename) as f:
+ with open(filename, encoding='utf-8') as f:
try:
first_line = f.readline()
return re.match('^#!.*python', first_line) is not None