Make black happy

The latest version seems to want escape sequences written in lowercase.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
(cherry picked from commit fc0de97c5e8e11527858e6d835525ded28d2501e)
This commit is contained in:
Lubomír Sedlář 2025-02-13 13:22:24 +01:00 committed by Stepan Oksanichenko
parent 6891038eb8
commit a6e7828033
2 changed files with 3 additions and 3 deletions

View File

@ -95,7 +95,7 @@ def is_iso(f):
def has_mbr(f):
return _check_magic(f, 0x1FE, b"\x55\xAA")
return _check_magic(f, 0x1FE, b"\x55\xaa")
def has_gpt(f):

View File

@ -9,10 +9,10 @@ from tests.helpers import DummyCompose, PungiTestCase, touch, FIXTURE_DIR
PAD = b"\0" * 100
UNBOOTABLE_ISO = (b"\0" * 0x8001) + b"CD001" + PAD
ISO_WITH_MBR = (b"\0" * 0x1FE) + b"\x55\xAA" + (b"\0" * 0x7E01) + b"CD001" + PAD
ISO_WITH_MBR = (b"\0" * 0x1FE) + b"\x55\xaa" + (b"\0" * 0x7E01) + b"CD001" + PAD
ISO_WITH_GPT = (b"\0" * 0x200) + b"EFI PART" + (b"\0" * 0x7DF9) + b"CD001" + PAD
ISO_WITH_MBR_AND_GPT = (
(b"\0" * 0x1FE) + b"\x55\xAAEFI PART" + (b"\0" * 0x7DF9) + b"CD001" + PAD
(b"\0" * 0x1FE) + b"\x55\xaaEFI PART" + (b"\0" * 0x7DF9) + b"CD001" + PAD
)
ISO_WITH_TORITO = (
(b"\0" * 0x8001)