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é <philmd@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com> Message-ID: <20251110104837.52077-1-thuth@redhat.com>
This commit is contained in:
parent
92e262fc28
commit
0fa4b130a8
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue