From 2bfba5d94ba7e8c72f1eeed6ff9f098563b569a3 Mon Sep 17 00:00:00 2001 From: Thomas Huth Date: Wed, 19 Nov 2025 09:26:35 +0100 Subject: [PATCH] tests/functional/aarch64/test_rme_sbsaref: Silence issues reported by pylint MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Drop unused import and use an encoding for open(). Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Thomas Huth Message-ID: <20251119082636.43286-15-thuth@redhat.com> --- tests/functional/aarch64/test_rme_sbsaref.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/functional/aarch64/test_rme_sbsaref.py b/tests/functional/aarch64/test_rme_sbsaref.py index 6f92858397..4845c82496 100755 --- a/tests/functional/aarch64/test_rme_sbsaref.py +++ b/tests/functional/aarch64/test_rme_sbsaref.py @@ -14,7 +14,6 @@ from os.path import join import shutil from qemu_test import QemuSystemTest, Asset, wait_for_console_pattern -from qemu_test import exec_command_and_wait_for_pattern class Aarch64RMESbsaRefMachine(QemuSystemTest): @@ -48,7 +47,7 @@ class Aarch64RMESbsaRefMachine(QemuSystemTest): efi = join(rme_stack, 'out', 'EFI') os.makedirs(efi, exist_ok=True) shutil.copyfile(join(rme_stack, 'out', 'Image'), join(efi, 'Image')) - with open(join(efi, 'startup.nsh'), 'w') as startup: + with open(join(efi, 'startup.nsh'), 'w', encoding='ascii') as startup: startup.write('fs0:Image nokaslr root=/dev/vda rw init=/init --' ' /host/out/lkvm run --realm' ' -m 256m' -- 2.47.3