From: Thomas Huth Date: Mon, 10 Nov 2025 10:48:37 +0000 (+0100) Subject: tests/functional/m68k/test_nextcube: Fix issues reported by pylint X-Git-Tag: v10.2.0-rc1~11^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fa4b130a8d4fc46fb7b0b97b34656ac0c69c3c9;p=thirdparty%2Fqemu.git tests/functional/m68k/test_nextcube: Fix issues reported by pylint Fix the indentation in one line, and while we're at it, use an f-string instead of old-school formatting in another spot. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Thomas Huth Message-ID: <20251110104837.52077-1-thuth@redhat.com> --- diff --git a/tests/functional/m68k/test_nextcube.py b/tests/functional/m68k/test_nextcube.py index e5e1c69dcbd..71c160d0262 100755 --- a/tests/functional/m68k/test_nextcube.py +++ b/tests/functional/m68k/test_nextcube.py @@ -40,7 +40,7 @@ class NextCubeMachine(QemuSystemTest): time.sleep(0.1) res = self.vm.cmd('human-monitor-command', - command_line='screendump %s' % screenshot_path) + command_line=f"screendump {screenshot_path}") if 'unknown command' in res: self.skipTest('screendump not available') @@ -52,7 +52,7 @@ class NextCubeMachine(QemuSystemTest): from PIL import Image with Image.open(screenshot_path) as image: - width, height = image.size + width, height = image.size self.assertEqual(width, 1120) self.assertEqual(height, 832)