]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tests/functional/m68k/test_nextcube: Fix issues reported by pylint
authorThomas Huth <thuth@redhat.com>
Mon, 10 Nov 2025 10:48:37 +0000 (11:48 +0100)
committerThomas Huth <thuth@redhat.com>
Tue, 11 Nov 2025 08:39:03 +0000 (09:39 +0100)
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é <philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20251110104837.52077-1-thuth@redhat.com>

tests/functional/m68k/test_nextcube.py

index e5e1c69dcbd7fd88f3c4dd54d1b6eeb5b5e4c723..71c160d02624919d0f005ebdc6ce2de5dae85641 100755 (executable)
@@ -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)